M
Meelis
Hi
Can one property have different types?
For example, i need to property type to be dependend on second property.
Pirvate MyValue as Object
Private MyType as Integer
Public Property PType() as Integer
Get
Return MyType
End Get
Set (ByVal value As Integer)
MyType=value
If MyType=1 Then Value=Windows.Forms.CheckState
If MyType=2 Then Value=Boolean
End Set
End Property
Public Property Value() as Object
Get
Return MyValue
End Get
Set (ByVal value as Object)
MyValue=value
End Set
End Property
But on propertywindow property "Value" is "grayed" and i cant choose
values.
Regards;
Meelis
Can one property have different types?
For example, i need to property type to be dependend on second property.
Pirvate MyValue as Object
Private MyType as Integer
Public Property PType() as Integer
Get
Return MyType
End Get
Set (ByVal value As Integer)
MyType=value
If MyType=1 Then Value=Windows.Forms.CheckState
If MyType=2 Then Value=Boolean
End Set
End Property
Public Property Value() as Object
Get
Return MyValue
End Get
Set (ByVal value as Object)
MyValue=value
End Set
End Property
But on propertywindow property "Value" is "grayed" and i cant choose
values.
Regards;
Meelis