D
deneb
Hi
I want to prevent some code to run in design time.
I have a base form that have some code in its Load event.
And I create a form inherited from base form.
When I watch the form design in design time, codes that is in base
form's load event are excuted.
The problem is that because it's design time, it couldn't work well.
So it always return some errors.
As far as I know below code can prevent code to run in debug mode.
#if debug then
#end if
Is there something like that can prevent code in design time???
I'm using Visual-Studio 2005 VB.NET.
Thanks
I want to prevent some code to run in design time.
I have a base form that have some code in its Load event.
And I create a form inherited from base form.
When I watch the form design in design time, codes that is in base
form's load event are excuted.
The problem is that because it's design time, it couldn't work well.
So it always return some errors.
As far as I know below code can prevent code to run in debug mode.
#if debug then
#end if
Is there something like that can prevent code in design time???
I'm using Visual-Studio 2005 VB.NET.
Thanks