Re: How to prevent code from being executed by the Designer?
- From: "Fabio Cannizzo" <fcannizzo.mifft2001@xxxxxxxxxx>
- Date: Wed, 28 Dec 2005 21:29:25 -0000
Thanks to all of you guys.
In reality I need this in an object inherited from UserControl, not from
Form.
The constructor of my UserControl will create some unmanaged objects using
interops, and I suspect this is what is causing lots of problems with my VS.
See my other post just two hours ago: "Bad UserControl in toolbox".
Regards,
Fabio
"D. Yates" <foeman@xxxxxxxxxxx> wrote in message
news:eHr1xv%23CGHA.2644@xxxxxxxxxxxxxxxxxxxxxxx
> Fabio,
>
> When developing user controls or custom controls, I SOMETIMES use
> this.DesignMode to prevent things from being created.
>
> Why do you need it for a form?
>
> Dave
>
> "Fabio Cannizzo" <fcannizzo.mifft2001@xxxxxxxxxx> wrote in message
> news:43b2f12d$0$1071$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
>> How can I prevent a few lines of code contained in the constructor of a
>> Form from being executed by the Designer?
>>
>> Thanks,
>> Fabio
>>
>
>
.
- Follow-Ups:
- Re: How to prevent code from being executed by the Designer?
- From: D. Yates
- Re: How to prevent code from being executed by the Designer?
- From: Jeremy Williams
- Re: How to prevent code from being executed by the Designer?
- References:
- How to prevent code from being executed by the Designer?
- From: Fabio Cannizzo
- Re: How to prevent code from being executed by the Designer?
- From: D. Yates
- How to prevent code from being executed by the Designer?
- Prev by Date: Re: Can you write code directly in CIL ???
- Next by Date: Re: Why is C# 450% slower than C++ on nested loops ??
- Previous by thread: Re: How to prevent code from being executed by the Designer?
- Next by thread: Re: How to prevent code from being executed by the Designer?
- Index(es):