Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a old-fashioned Forms dialog created with VS 2013 and .Net 4.5. The dialog has three buttons at the lower right edge of the dialog. In the VS design tool I placed the buttons and set the anchor of the buttons to bottom,right.

At runtime on a Windows 7, I see the buttons as designed.

On a Server 2008R2 the location of the buttons are moved, so the right button is half outside the dialogbox.

On a Server 2012R2 the right button is moved complete outside the dialogbox.

Can someone imaging why this happen or is this a known issue and can I prevent this?
Except I coding the location by my own (this have I done already) or using wpf (historical reasons).

What I have tried:

I don't know what I can try. Please, can someone help me.
Posted
Updated 2-Mar-16 2:17am
v2
Comments
Sinisa Hajnal 2-Mar-16 9:49am    
Maybe the parent control resizes and pulls the buttons off screen. I usually set the buttons in separate (usually bottom docked) panel and then anchor to bottom right of the panel.
CoderzF1 2-Mar-16 12:27pm    
like stated above, place the buttons in a panel control, position the panel where you want it with the anchor set to bottom, right. if this doesnt work, then use the form's resize event to position the panel control.

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