This is correct the designmode thing works. I have a timer that is
refreshing some data with some external hardware and it kept trying to
communicate with it while I was trying to change some things in design mode.
I originally had all of this in a class and designmode is not a property of
a regular class so I made the control not make an instance of the class when
in design mode.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eu**************@TK2MSFTNGP14.phx.gbl...
"Cor Ligthert" <no************@planet.nl> schrieb: Are you sure of this answer (I did not test it) however it seems so
strange for me.
Is the answer not to set the timer1.enabled = true in the form.activated
event?
I assumed that the OP placed a timer on a usercontrol and wants to disable
the timer when the control is in design mode.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>