[Solved] Windows 7 theme problem

Aug 28, 2010 at 10:10 PM


I have a problem when using an aero theme and setting FormBorderStyle = FixedSingle. A white area is placed between the ribbon and the form border: click

If I instead use FormBorderStyle = Sizable the problem is gone: click

If I use Windows 7 basic theme it doesn't matter what FormBorderStyle is set to, it always works. I am using the same code as in the tutorials (SplitContainer) and get the same result on two computers, how can I fix this?

Aug 28, 2010 at 11:39 PM

When you use the Windows Ribbon Framework it poses some limitations on the window,
for example, you can't have menu items.

The issue you have mentioned seems to be yet another limitation in the Windows Ribbon Framework.
Unfortunately, the only thing I can recommend is to avoid changing the FormBordereStyle to FixedSingle.


Aug 28, 2010 at 11:53 PM
Edited Aug 29, 2010 at 12:00 AM

Thanks for the reply.

Unfortunately I cannot have users changing the size of the window. Perhaps I can ignore window resize events or something instead.

Edit: Found a way to set the max and min size of the window so it works like I want it now. Thanks for a great lib.