Star-Dust Expert Licensed User Longtime User Dec 24, 2018 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Dec 24, 2018 #2 Code: Copy 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 Upvote 0
Code: Copy 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