Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is Property Read Only?
Message
From
29/01/2004 13:29:47
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00871526
Message ID:
00871915
Views:
10
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,
Previous
Reply
Map
View

Click here to load this message in the networking platform