Solved Visual Studio 2008 - panel and other objects keep slipping to the bottom of form

Posted on 2008-11-05
Last Modified: 2013-12-26

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.

Question by:murbro

    Expert Comment

    Check the anchor and dock properties make sure the dock property is set to none
    LVL 62

    Accepted Solution

    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.


    Author Closing Comment

    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
    LVL 62

    Expert Comment

    by:Fernando Soto
    Not a problem, glad I was able to help.  ;=)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now