Works perfectly - that is until the user maximizes and normalizes the form, then the size of the @#!##@% form changes! i.e. it does not restore to the proper size.
It's driving me nuts.
A small and rather messy project illustrating the problem is attached. Sorry, it's a rar as I don't have WinZip on this machine.
Any ideas? Can it be a DotNet bug?
Help!!!!
Brian
(Fighting with the RightToLeft bugs in VS 2005)
Re: [2.0] Custom border form problem (Advanced. Guru needed)
Well, I'm no guru, but I think I know what the problem is. The overriden WndProc function's switch statement doesn't take into account that WM_WINDOWPOSCHANGED sets the client rectangle (Effectively calling that function you posted twice).. if you choose to simply ignore that message, the thing works fine.. i.e,
add this to your switch statement
Code:
case (int)NativeMethods.WindowMessages.WM_WINDOWPOSCHANGED: break;