You can use System.ComponentModel.Component.DesignMode to check to see if you are in design mode, but I don't this is set until after your form is constructed. Thus, it won't work in initialize components because this is called from the constructor.
>I inherit from a form, and in the new event of the form i set its left a top position to some screen coordinates, the problem is that when i show it at design time, the form is moved to the coordinates i place in the base form class, and i want that the form only move at run time, not design time.
>
>Forms in VB cannot move at desing time, i think this is a bug, is there a way to know if the form is at design time or runtime?
>
>so if it is at design time i will not move the form.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi