Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property not generates code in designer file
Message
De
12/11/2010 18:29:36
 
 
À
10/11/2010 05:36:11
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01488701
Message ID:
01488990
Vues:
35
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.html

Unfortunately, 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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform