12-04-2012 07:37 AM
Hi all,
I have a numeric edit (v12.0.0.318 for WinForms) which looks like attached numedit.png.
And I would like to select the value characters by clicking into the control so that it looks like numedit_Sel.png.
I don´t want to doubleclick into the control: I want to do this with a single click.
Any ideas.
Regards
ist1304
12-21-2012 10:36 AM
hi csd,
you can define a callback on mouse click for the numeric edit control and use the method select(int start, int length) from this control to highlight the value you wish. The callback looks like that for me and seems to work:
private void numericEdit1_MouseClick(object sender, MouseEventArgs e) { numericEdit1.Select(0, 5); }
Best regards