Hi,
I want tu select all text when the user click or enter to the tool.
I use handles "Enter" and handles "MouseClick" is work fine.
But do you have a property on editor to selected all text every time when the user enter to edit mode ?
Because I have 30 tools on the form
Francois
Hello Francois,
maybe one possible solution could be if you are using UserControl which contains your UltraNumericEditor with desired behavior. By this way you could implement this userControl everywhere in your application without to repeat your custom settings.
Let me know if you have any questions
I never use UserControl.
You tell me I can build a control default and load it on every uce or une of my form ?
Francois.
The problem is that the UltraTextEditor display a child control (a textBox) inside itself when it goes into edit mode. So when you call SelectNextControl and tell it to go back one control, it goes from the textbox to the UltraTextEditor control, which then puts focus back onto the TextBox.
You can probably get around this pretty easily by changing the control you are passing into SelectNextControl:
Case Keys.Up
uce.Editor.ExitEditMode(False, True)
Me.SelectNextControl(uce, False, True, True, True)
I use KeyDown to select the next control when user press Enter and Down arrow.
But When is Up Arrow the controle don't work with UltraTextEditor ? is use fine with ultracurrencyeditor and ultranumericeditor
Do you have idea why is not work with UltraTextEditor ?
Private Sub uteNumeroSac_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles uteNumeroSac.KeyDown
Dim uce As UltraWinEditors.UltraTextEditor = DirectCast(sender, UltraWinEditors.UltraTextEditor)
Select Case e.KeyCode
Case Keys.Enter
Me.SelectNextControl(ActiveControl, True, True, True, True)
Me.SelectNextControl(ActiveControl, False, True, True, True)
Case Keys.Down
End Select
End Sub