View Control (VS 2005 C#)
-
Hi, is there away to jump to the location of a control thru code for example : private System.Windows.Forms.Label label13; // in the designer click on the "label13" and see it in the {Design] thanks :) :)
Have Fun Never forget it
Err..... Yes, possibly, maybe. It really depends on what you mean by 'jump to the location'. Do you mean make the mouse pointer move to that location? Or do you mean something else?
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
Err..... Yes, possibly, maybe. It really depends on what you mean by 'jump to the location'. Do you mean make the mouse pointer move to that location? Or do you mean something else?
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
i've inserted a new label now i've changed the text to a "" the silly thing that i've forgat where it is and the label is "invisable to me" in another env i'm working called CVI i can right click in code on the name of the control and click go to control, and the designer opens and shows me the control is there antihng similar in vs 2005 :) :)
Have Fun Never forget it
-
i've inserted a new label now i've changed the text to a "" the silly thing that i've forgat where it is and the label is "invisable to me" in another env i'm working called CVI i can right click in code on the name of the control and click go to control, and the designer opens and shows me the control is there antihng similar in vs 2005 :) :)
Have Fun Never forget it
Oh yes!! 1) ensure the form with the control you want is selected in design view. 2) In the properties window (if you don't have it up use View | Properties Window menu) there is a combo box at the top, drop it down. 3) select required control from drop-down. 4) it will be selected in designer, and its properties are displayed.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
Oh yes!! 1) ensure the form with the control you want is selected in design view. 2) In the properties window (if you don't have it up use View | Properties Window menu) there is a combo box at the top, drop it down. 3) select required control from drop-down. 4) it will be selected in designer, and its properties are displayed.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
Hi, is there away to jump to the location of a control thru code for example : private System.Windows.Forms.Label label13; // in the designer click on the "label13" and see it in the {Design] thanks :) :)
Have Fun Never forget it
Of course, a decent naming convention helps here as well. As your control is called label13, you have no idea what it is or what context it has, hence your difficulty in finding it. If your control was called something like labEmailAddress it is obvious what the label is for, and would be much easier to find later on.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Of course, a decent naming convention helps here as well. As your control is called label13, you have no idea what it is or what context it has, hence your difficulty in finding it. If your control was called something like labEmailAddress it is obvious what the label is for, and would be much easier to find later on.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.