G
Guest
I have developed a custom control to be used in my application. My
application includes a form designer, so the control can be hosted while
designmode for the control is either true or false, depending on whether they
are using the form designer, or in "run mode". The custom control includes a
slider control that is supposed to be active in our form designer
(designmode=true) and inactive in our run mode (designmode=false). The
problem is that I'm getting the reverse.
I've put this code into an Intialize method that fires when the custom
control is instantiated.
Private Sub Initialize()
If Me.DesignMode = True Then
Splitter1.Enabled = True
Else
Splitter1.Enabled = False
End If
End Sub
This works in order to disable the splitter if the controls
designmode=False, but does not enable the splitter if the reverse is true.
I am working in VB.Net 2003.
application includes a form designer, so the control can be hosted while
designmode for the control is either true or false, depending on whether they
are using the form designer, or in "run mode". The custom control includes a
slider control that is supposed to be active in our form designer
(designmode=true) and inactive in our run mode (designmode=false). The
problem is that I'm getting the reverse.
I've put this code into an Intialize method that fires when the custom
control is instantiated.
Private Sub Initialize()
If Me.DesignMode = True Then
Splitter1.Enabled = True
Else
Splitter1.Enabled = False
End If
End Sub
This works in order to disable the splitter if the controls
designmode=False, but does not enable the splitter if the reverse is true.
I am working in VB.Net 2003.