The control has a boolean property, DesignMode, that is true if the object
is hosted in the designer.
Be careful though because this property is NOT 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.
"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi
in my solution to the PPC2003 & toolbar icon issue i would like to have
that a line is not interpreted bu the forms designer.
in the InitializeComponent() i would like it to work like this.
Is there a define or an attribute to get it working like this ?
#if DESIGNTIME
this.toolBar1.ImageList = this.imageList1;
#endif
Johan