Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Designer moves buttons around
 

Designer moves buttons around

Hey,
I have several forms which derive from one base form.
The base form provides OkButton and CancelButton and some other stuff.
Every time i open one of the derived forms in designer, OkButton and CancelButton are gone. The designer moves them along the x axis to some random location far outside my form.

For example:
I move the OkButton to (150;10) and close the designer.
When i compile, the button is at the right location.
If i reopen the designer, the button is at (1150;10) or some other random x coordinate.


I noticed this in Vs 2008 and Vs 2008 sp1.

any ideas?


Arne Böckmann  Wednesday, October 22, 2008 7:22 AM

Hi Arne B.

I want to know did the OkButton and CancelButton in your base form were protected or public? When you create a derived form. You can just change the protected or public member inherited from your base form. Please give me more information about that. Thank you!

Sincerely,

Kira Qian

Kira Qian  Friday, October 24, 2008 3:20 AM
I am not sure right now.
I am not working this week so i cannot look it up. I'll answer your question as soon as i get back to work.
Arne Böckmann  Wednesday, October 29, 2008 3:39 PM
They are protected.
Arne Böckmann  Monday, November 03, 2008 8:04 AM

You mean the derived form will change the location of the two button randomly. In design time or run time?

Kira Qian  Monday, November 03, 2008 9:31 AM
The derived form changes the X-Coordinate of the buttons randomly at design time.

Arne Böckmann  Tuesday, November 04, 2008 9:00 AM

You can use google to search for other answers

Custom Search

More Threads

• Why are new UserControl classes abstract ?
• ScrollBars
• Compona ComboBox Control ?
• Need Image Control With SubImages
• Using commands/verbs in the PropertyGrid when hosting the Form Designer
• SendToBack control
• Shadow on form
• Property For combobox
• how to diasble cells in datagrid view
• How can I write code/event code for ToolBar Button individually?