Click here to Skip to main content
15,744,304 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am building a project where I am using multiple panel and dynamic user controls when I run my project and work on user controls. Location of panels changes why this happens.

Or

How to lock panel locations on form.


Thanks in Advance...
Posted
Updated 22-Jun-12 5:28am
v2
Comments
OriginalGriff 22-Jun-12 6:01am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.

1 solution

you can create a custom user control class and add it to a Panel.
if you add your control to a control like a Panel the location is relative to the Panel not the form.
maybe also check anchoring properties.
 
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