Reputation: 2212
In vb.net I have control named checkbox1 that I can see at dropdown menu in properties tab. but in designer I am not able to locate it...
Also when I am selecting CheckBox1 from properties' dropdown menu, no checkbox in designer gets highlighted....
How to find that control in designer?
pls help me....
Upvotes: 2
Views: 293
Reputation: 8084
Your control might be hidden due to various reasons (some of them are bugs in the designer's behaviour).
It might be that the control has a size of (0,0), it might be behind some other control, it might have some off-display location such as (-10,-10), etc.
You can try playing around with the Size and Location properties of the control to try and reveal it, but if that fails you may want to do it the ugly way:
Upvotes: 1
Reputation: 11792
Select it in the property window, change it's location to 0,0, size to 100,100, and make sure it's got some .Text property assigned.
(ASP.Net or WinForms designer?)
Upvotes: 2
Reputation: 34820
When you select the checkbox from the dropdown, look at its properties- is Visible set to false? Also look at the z-order, it might be hiding behind another control.
Upvotes: 2