Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i dragged maskedtextbox from toolbox on windows form but it is not displaying at runtime
even visible property is true
Posted
Updated 19-Dec-11 18:37pm
v3
Comments
thatraja 20-Dec-11 0:56am    
Don't know why. Anyway delete that one & retry.
Sergey Alexandrovich Kryukov 20-Dec-11 1:23am    
Good idea! I credited it in my answer where I advised few more -- please see.
(I actually can guess why this thing is not visible -- a usual thing.)
--SA

Raja (thatraja) gave you a good idea in his comment. I can explain: even though we cannot see the problem, it's clear: it is easy to screw up the layout and put some control away form view, for example.

This is the most likely reason: your control itself or its parent control can be just beyond the bound, by some reason which does not really matter. Try also this: go to the control's properties and set its location to (0, 0) and give it some arbitrary but reasonable size. If it can be covered by some other control, either try to put in on top or move to a open space.

When you play with that and can see what's going on, do the following: change your design and avoid the use of absolute positioning using Designer (absolute positioning uses some code is more reasonable). Instead, all your controls should be places in panels and docked, with the use of the properties Dock and Padding — all of them.

You can find my simple sample here: how to dock button so that it can adjust with the form[^].

Absolute positioning is evil and manual unreliable boring work. Don't do it.

Can you keep a secret? Here is a hint: most serious part of work in seriously designed UI is done without Designer, believe or not. :-)

—SA
 
Share this answer
 
v2
Comments
thatraja 20-Dec-11 1:46am    
Nice suggestion, 5!
Probably OP must include some more details in question(if still issue ....).
Sergey Alexandrovich Kryukov 20-Dec-11 1:49am    
Thank you, Raja.
Providing sufficient detail is maybe a good thing to learn for future. I think, in this case it should resolve the problem.
--SA
Do you have any group box control on your window form?? it might get dropped into that search for the same in the following manner:-

1) Select the form window.
2) The select the properties window and find the control in the drop down on the top of properties window.
3). the moment you select the control it will get highlighted in the form.

accept this as answer if it solves your problem. :)

cheers

Varun Sareen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900