Private Sub UltraTextEditor4_EditorButtonClick(sender As Object, e As EditorButtonEventArgs) Handles UltraTextEditor4.EditorButtonClick If e.Button.Key = "chk" Then If UltraTextEditor4.Enabled = False Then UltraTextEditor4.Enabled = True Else UltraTextEditor4.Enabled = False End If End If End Sub
Once i click the check box , the whole ultratexteditor becomes disabled.
I am little confused.
Hello, Setting the editor's enabled property to false will disable the control. May I ask what you are trying to achieve by using the StateEditorButton with an UltraTextEditor? If it would help could you provide a mockup screenshot demonstrating your requirement?
Hi,
I'm just exploring the components in ultratexteditor.
What I need is what can I do with stateeditorbutton in ultratexteditor.
The state button is for your own use. It's completely arbitrary and you can use it to track any state you like.Some people use it to indicate a null value. For example, in a DateTimeEditor, the user could check the checkbox to indicate a Null and uncheck it to set an actual date.
Disabling the control wouldn't be a good use case, since once the control is disabled, you wouldn't be able to click the checkbox to re-enable it.