Windows Develop Bookmark and Share   
 index > Windows Forms General > FormBorderStyle: FixedSingle Bug
 

FormBorderStyle: FixedSingle Bug

I'm using Vista andVisual Studio 2008 Professional Edition. I recently noticed that for all my forms with FixedSingle border style, it shows a thin border in the design window, but when I actually run the program it has the same border as a sizeable window. This is a problem because all my FixedSingle forms which are 640x480 actually run as 650x490. Is this a known problem? Is the only solution to change the sizes to 630x470 forfixed borderforms?

ScottyDoesKnow  Friday, September 25, 2009 3:13 PM
This thread explains what is going on.

Hans Passant.
nobugz  Friday, September 25, 2009 5:57 PM
Vista and Win7 always honor the border padding from the display properties, even for tool windows.
Coding Light - Illuminated Ideas and Algorithms in Software
Coding Light Wiki �LinkedIn �ForumsBrowser
David M Morton  Friday, September 25, 2009 3:25 PM

Could you clarify what you mean by display properties? Something set in visual studio or something set in the operating system? And where exactly?

[Edit] Nevermind I found it. I only need the 640x480 constraint on xp so that should still work fine, so it's not a big deal. Thanks for the help.

ScottyDoesKnow  Friday, September 25, 2009 5:53 PM
This thread explains what is going on.

Hans Passant.
nobugz  Friday, September 25, 2009 5:57 PM
Are youusing the Aero theme? The size remains the same on a classic theme.
JohnWein  Friday, September 25, 2009 6:04 PM
I am using Aero, Classic works fine for me too. So after reading the thread there's no way to fix it without making it non-xp?
ScottyDoesKnow  Friday, September 25, 2009 6:51 PM
You closed the thread. Do you still have questions about this?

Hans Passant.
nobugz  Friday, September 25, 2009 7:00 PM
Well I'm assuming I can't fix it, it's not a big deal because I only need the 640x480 for XP. Reading the other thread though the only answer made it not compatable with XP, I was wondering if there was a way of fixing it while still being able to run on XP.
ScottyDoesKnow  Friday, September 25, 2009 7:33 PM

You can use google to search for other answers

Custom Search

More Threads

• Can I use the outlook look and feel?
• Application Focus OnLoad
• Manual restore - weird rendering?
• Trying to fill DataGridView with filtered (stored procedure using parameters) data.
• Merge Menu Nightmare
• Many XP problems
• setting hotkeys for macro's in a vb.net
• ComboBox: null returned from SelectedValue
• RegAsm error because it is not a valid .NET assembly using VS2005
• Setting properties in design time