Thanks Hector. That link solved my problem and I think I might have some other problems that it might help solve aswell.
Again thank you.
Sincerely,
Einar
>Take a look at the good old Windows Forms FAQ:
>
>
http://www.syncfusion.com/FAQ/WinForms/FAQ_c81c.asp#q626q>
>
>>Is there any was I can capture if I am in design mode or in run time? I have some resize code that works great but unfourtunately it also works in design mode i.e. ig i resize my groupbox at design time the controls are resized.
>>I assume the solution to this has something to do with preprocessor directives.
>>Any help is appreciated.
>>Thanks,
>>Einar
Semper ubi sub ubi.