Apr 22, 2005 #1 T 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
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
Apr 22, 2005 #2 P PWNettle Centurion Joined Jun 2, 2003 Messages 128 Location Phoenix, AZ 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
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
Apr 22, 2005 #3 T techmanbd Junior Contributor Joined Sep 10, 2003 Messages 397 Location Burbank, CA Goto the combox properties and change "DropDownStyle" to DropDownList
Apr 23, 2005 #4 T thiya Newcomer Joined Apr 22, 2005 Messages 7 Thanks a lot, i have tested the both of soultion from nettle and techmanbd. its working fine for me.