thiya Posted April 22, 2005 Posted April 22, 2005 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 Quote
PWNettle Posted April 22, 2005 Posted April 22, 2005 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 Quote
techmanbd Posted April 22, 2005 Posted April 22, 2005 Goto the combox properties and change "DropDownStyle" to DropDownList Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
thiya Posted April 23, 2005 Author Posted April 23, 2005 Thanks a lot, i have tested the both of soultion from nettle and techmanbd. its working fine for me. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.