Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Controls Location Changed
 

Controls Location Changed

Hi guys!

i am having an issue with the Windows Forms Designer. I am developing a Windows Form Application, so i create the Forms and everything was ok but at some point the controls started to be located in random points. The location property was like -1156;25 or something. So i placed it back in the right position and everytime i am compiling the controls are placed back to the wrong position. Of course i dont have any kind of code to change the location property. The values are changed in the designer.cs automatically after each compilation.

Can anyon help me with this?

Thanks very much in advance.

diego_goto  Friday, September 26, 2008 5:24 PM

Hi diego_goto,

It may be caused by the corrupt project settings. I recommend you try the following general troubleshooting steps and see whether it helps.

1. Please apply the latest service pack of Visual Studio.

2. Try to create a new project, and see whether the problem still exists. Sometimes corrupted project settings can cause problems. These are project specific.

3. Try to reboot the operating system to safe mode and see whether the problem still happens. This can help to isolate other applications are interfering Visual Studio.

4. Try to create a new account and test the project in the new account. This can isolate user profile corruption related issues.

5. Try to disable Add-ns(e.g. “Tools�| “Add-in Manager� and run “devenv.exe /safemode� This can eliminate the possibility that third party Add-ins are causing problems.

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Wednesday, October 01, 2008 2:43 AM

Hi diego_goto,

It may be caused by the corrupt project settings. I recommend you try the following general troubleshooting steps and see whether it helps.

1. Please apply the latest service pack of Visual Studio.

2. Try to create a new project, and see whether the problem still exists. Sometimes corrupted project settings can cause problems. These are project specific.

3. Try to reboot the operating system to safe mode and see whether the problem still happens. This can help to isolate other applications are interfering Visual Studio.

4. Try to create a new account and test the project in the new account. This can isolate user profile corruption related issues.

5. Try to disable Add-ns(e.g. “Tools�| “Add-in Manager� and run “devenv.exe /safemode� This can eliminate the possibility that third party Add-ins are causing problems.

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Wednesday, October 01, 2008 2:43 AM

You can use google to search for other answers

Custom Search

More Threads

• Browse Component properties inside a Form
• UserControl serializing embedded classes
• DatagridView Columns Property
• Help With CodeDomSerializer
• Please Please help!!! How do you disable a listview item
• VS 2008 is worse than 2005?! :( - designer
• How to copy the panel including controls and paste in the same form?
• ToolStripControlHost - Designer functionality
• Enter/Leave events on a panel
• How do I not open multiple child forms within a single MDI Parent form?