Hi
this could help:
don't forget that in your constuctor you'll have to set one of the two
booleans to true
hth Peter
Private blnAutoFit, blnAutoSize As Boolean
Public Property AutoFit() As Boolean
Get
Return blnAutoFit
End Get
Set(ByVal Value As Boolean)
blnAutoFit = Value
blnAutoSize = Not Value
End Set
End Property
Public Property MyAutoSize() As Boolean
Get
Return blnAutoSize
End Get
Set(ByVal Value As Boolean)
blnAutoSize = Value
blnAutoFit = Not Value
End Set
End Property
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
I have a user control with two boolean properties (AutoFit and AutoSize).
Both can be set at design time but both cannot be True. How can I code
this so that at Design Time, when the user sets one to True, the other is
toggled to False.? I'm new to using Design Time Property Editors so would
appreciate any help.
--
Dennis in Houston