Hi Denis,
Not sure if this will address your problem or not, but it might be related. See my blog post:
http://geek-goddess-bonnie.blogspot.com/2009/12/defaultvalue-for-properties.htmlUnfortunately, the code in the blog post is C# not VB, but I hope you can get the idea.
~~Bonnie
>Hi,
>I found strange behavior when some of my properties not generates the designer code.
>When I build the dll then properties reverted, because it does not saves in designer fiile.
>And I can't understand why it could happens
>
>The property declared standard
>
>
> Private _pmks_allow_fulltext_search As Boolean = False
>
> <Description("Make fulltextsearch textbox visible")> _
> <Category("MKS Toolbar GridControl")> _
> <DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Visible)> _
> Public Property pmks_allow_fulltext_search() As Boolean
> Get
> Return _pmks_allow_fulltext_search
> End Get
> Set(ByVal value As Boolean)
> _pmks_allow_fulltext_search = value
> End Set
> End Property
>
>
>
>I already add attribute DesignerSerializationVisibility, it does not help.. and without this attribute it also does not generates the code in designer file.
>Any ideas?
>
>Thanks
>Denis