By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,046 Members | 2,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,046 IT Pros & Developers. It's quick & easy.

How to prevent the designer to create a value for a property in InitializeComponent ?

P: n/a
How to prevent the designer to create a value for a property in
InitializeComponent ?

I do not want the designer to create an initialisation entry in the
InitializeComponent method.

Is there any attribute i can apply to my property in my custom control to
avoid the designer making the init code ?

J.
Oct 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi
You can use DesignerSerializationVisibility Attribute ans set its value
to hidden :

[DesignerSerializationVisibility(DesignerSerializat ionVisibility.Hidden)]
Best Regard,
A.Hadi
Sagaert Johan wrote:
How to prevent the designer to create a value for a property in
InitializeComponent ?

I do not want the designer to create an initialisation entry in the
InitializeComponent method.

Is there any attribute i can apply to my property in my custom control to
avoid the designer making the init code ?

J.
Oct 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.