Hi Klemens,
It sounds like what you need to do is select all of the text in the field. I would try handling the Enter event of the control(s) and calling the SelectAll method to select all of the text. Or if there is no SelectAll method, set SelectionStart and SelectionLength.
I have a similar problem, when overriding the Enter event, I do a selectall(), it works fine for Tabbing, but I need to select all the text when clicking once in the field? Doesn't work. Any ideas?
Glenn
Here is the syntax: I put this in the Enter event...
Dim numericeditor As Infragistics.Win.UltraWinEditors.UltraNumericEditor = sender
numericeditor.BeginInvoke(New MethodInvoker(AddressOf numericeditor.SelectAll))
My guess is that the SelectAll is working when you click on the control, but then the MouseUp is firing and the control is placing the cursor at the mouse position. You can probably get around this by using BeginInvoke to call SelectAll instead of calling it directly.
Hi Glenn,
you are right and i'm still searching an answer for this;
I tried overriding the mouseclick event, this works for small numeric fields, but for datetime fields it just doesn't work because the cursor ist always placed at the end of the line - if the user wants to override something in the middle he is stuck.
I still can't believe that there is no setting for enabling override mode ? Mike can you help ?
thanks Thomas