chris Burgess
2008-02-25 16:02:53 UTC
How do I discover if a property is read only or read/write at runtime
(other than trying to write to it)?
e.g.
If:
Public ReadOnly Property Name() As String
Get
Return _name
End Get
End Property
then I want the textbox on the form to be read only.
If:
Private _name As String
Public Property Name() As String
Get
Return _name
End Get
Set(ByVal value As String)
_name = value
End Set
End Property
then I want the textbox to be read/write.
Thanks,
Chris
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
(other than trying to write to it)?
e.g.
If:
Public ReadOnly Property Name() As String
Get
Return _name
End Get
End Property
then I want the textbox on the form to be read only.
If:
Private _name As String
Public Property Name() As String
Get
Return _name
End Get
Set(ByVal value As String)
_name = value
End Set
End Property
then I want the textbox to be read/write.
Thanks,
Chris
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com