I set up a ComboBox in Editable mode. I would like every time you raise leventol Focus the text content is selected, a like doing in textField with the SelectAll or SetSelect property.
Sub ComboBox1_FocusChanged (HasFocus As Boolean)
If HasFocus Then
Dim jo As JavaObject = Sender
Sleep(40)
jo.RunMethodJO("getEditor", Null).RunMethod("selectAll", Null)
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.