"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:O892aPTZFHA.3364@TK2MSFTNGP12.phx.gbl...
> The form seen in the designer is not actually an instance of the Form1
class
> you're designing but a simple form with the relavent controls added to it.
> Custom controls however are instances of the real thing so you could
create
> a custom control that covered the form entirely and do design-time
detection
> on that. You may also be able to do design time detection on a derived
form
> that uses visual inheritance. In any case, the DesignMode property is
never
> valid in the constructor.
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
>
http://www.bobpowell.net/tipstricks.htm >
> Answer those GDI+ questions with the GDI+ FAQ
>
http://www.bobpowell.net/faqmain.htm >
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "Egil Winther" <egil.winther@shipnet.no> wrote in message
> news:%23QS8z1OZFHA.2520@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > We're having a problem with the forms DesignMode property which is
always
> > false.
> > I checked around, and found that the forms Site property is null.
> >
> > Does anyone know how this can happen, and what to do about it?
> >
> > Rgds
> > Egil Winther
> > ShipNet AS
> >
> >
>
>