Quote:
Originally Posted by RandomCoder
bet you can't spot any difference in operation to a normal NumUpDown control
|
Well the text is grey and doesn't match other controls' text because the Textbox needs to be disabled and this automatically greys the text.
To REALLY make it look like a normal UpDown control leave the Textbox enabled and use a GotFocus event procedure to prevent user entry.
Code:
Sub TextBox1_GotFocus
Num1.Focus
End Sub
EDIT: Erel, if you read this, why do I get two GotFocus events in this situation? Without the Num1.Focus I get the single event I expect, if I call the .Focus method on any other control I get called twice!