VB.net Visual Studio 2008 - panel and other objects keep slipping to the bottom of form


On my Windows form in Visual Studio 2008 my panel, button and other objects kep slipping
to the bottom of the form. The form is very long. I keep on having to drag the controls to the top of the form. I am not sure how to stop this happening.

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Check the anchor and dock properties make sure the dock property is set to none
Fernando SotoRetiredCommented:
Hi murbro;

If this is a problem you are having in design mode what you can do is select all the controls that you wish not to move while in design mode and go to the properties window and set the Locked to true. This will not allow the control to be moved from its position. If you later need to place a control that is Locked, select the control and set its Locked to false and the control will be free to be moved around again.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Great answer. Thank you very much! Thanks also for the input efferon, but I had done both things you said before and didn't help
Fernando SotoRetiredCommented:
Not a problem, glad I was able to help.  ;=)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.