y0,
In my app the user can cut, copy and paste text.
I want the Cut button to be enabled only when the user is selecting a text (with Shift), and if the user is not selecting anything i want the button to be disabled.
I've tried this:
VB Code:
  1. Private Sub EditText_Change()
  2. If Len(EditText.SelText) > 0 Then
  3.     Toolbar1.Buttons(11).Enabled = True
  4.     Toolbar1.Buttons(12).Enabled = True
  5. Else
  6.     Toolbar1.Buttons(11).Enabled = False
  7.     Toolbar1.Buttons(12).Enabled = False
  8. End If
  9. End Sub
How can i do that?