Detect, in code behind, that i'm in the designer
Hi, i'd like to know if there is a way to detect if i'm running the report from the designer.
For example, using a preprocessor directives:
#if DESIGNER
// Initialize some variables to default value
// Show some message boxes
#endif
or maybe there is a static variable.
Is there a way?
Thank you very much.
For example, using a preprocessor directives:
#if DESIGNER
// Initialize some variables to default value
// Show some message boxes
#endif
or maybe there is a static variable.
Is there a way?
Thank you very much.
Comments