Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is Property Read Only?
Message
De
29/01/2004 13:29:47
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00871526
Message ID:
00871915
Vues:
11
Kevin,

Many Thanks. That was the problem.

95% of the time it’s so simple. I had added properties to my base classes before with no problem, so I thought I was going nuts when this one appeared disabled in the property window. I think I will give my mind a rest, take a day off and go fishing or play golf.

Thanks again,

Terry Carroll



>Terry,
>
>>What looks wrong here??
>>
>>Private m_ReadOnly As Boolean = False
>><Browsable(True), Description("Sets read only behavior for Checkbox")>_
>>Public Property IsReadOnly()
>>     Get
>>        Return m_ReadOnly
>>     End Get
>>     Set(ByVal Value)
>>        m_ReadOnly = Value
>>    End Set
>>End Property
>>
>
>This may be the problem...you haven't specified the type of the property as shown here:
>
>
Public Property IsReadOnly() As Boolean
>
>Regards,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform