What event should I handle to execute code when WinForms application switches from Run mode to Desig

Posted by dotnetuser on Stack Overflow See other posts from Stack Overflow or by dotnetuser
Published on 2010-04-20T19:06:47Z Indexed on 2010/05/09 5:08 UTC
Read the original article Hit count: 156

Filed under:
|
|

I am running a Windows form application and I need to execute a piece of code when I switch to design mode. I have a handler for the OnEnterDesignMode debugger event and this gets hit if I am debugging the application and then switch to design mode. However, this does not get hit if I initially start without debugging and then switch to design mode. What event do I need to handle in order that certain code is executed when switching from Run mode to Design mode?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#