Validation in combo box

thiya

Newcomer
Joined
Apr 22, 2005
Messages
7
HI ALL:

In my application, I need to restrict the user to enter the keyboard input to the combo box.

when i was working in vb6 i had used the code:

keyascii=0 in keypress event of combo box

How can i acheive for vb.net combo box

thanks in advance
 
I think you're looking for:

e.Handled = True

(e is the event args object of the event)

...which essentially cancels the event (the key press). Any code you have in the event will execute, but they key press is surpressed.

Paul
 
Thanks a lot,


i have tested the both of soultion from nettle and techmanbd. its working fine for me.
 
Back
Top