Link to home
Start Free TrialLog in
Avatar of sterrius
sterrius

asked on

Stopping User Input On Numeric Up/Down

Hi,

Is there any way to stop the user entering data into numeric up down fields in VS 2005?

Thanks.
Avatar of Swapnil
Swapnil
Flag of India image

Hi sterrius,
just write keypress event as under

    Private Sub NumericUpDown1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles NumericUpDown1.KeyPress
        Exit Sub
    End Sub

Regards,
NetSwap
ASKER CERTIFIED SOLUTION
Avatar of Swapnil
Swapnil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial