Click here to Skip to main content
15,890,946 members
Articles / Desktop Programming / Windows Forms

Prevent code executing at Design Time in Visual Studio for Winforms Apps

Rate me:
Please Sign up or sign in to vote.
4.67/5 (3 votes)
20 Feb 2010CPOL1 min read 9.3K   1  
Either method is good for testing if you are in the designer, but another problem aside from preventing code execution, is preventing code from being jitted in the Designer. For example, you may reference assemblies or components that are dependent on native code, which cannot be loaded into any...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions