Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Visual Studio 2005 Proffesional-VB Combo Box vs TextBox
 

Visual Studio 2005 Proffesional-VB Combo Box vs TextBox

Combo Box:
Event KeyPress
setup simple msgbox to test the response to <Enter> key
the event will not fire unless the enter key is preceded by <Alt> key first

Text Box:
Event KeyPress
setup simple msgbox to test the response to <Enter> key
The Event fires correctly

Q: is this Behavior by design , or a Bug?

Example code

Dim test As String
test = CStr(IIf(e.KeyChar = Chr(13), "Enter", e.KeyChar))
MsgBox(test & AscW(e.KeyChar))

blacksheepII  8 hours 10 minutes ago
i tested the same code with keypress of combo box as well as textbox, its working perfect, may i know in what case its not working

i dont think its a bug, there must be something going wrong in ur application...

let me know if u have any more queries



Narayanan Dayalan - Zeetaa Business Solutions ------- Please "Mark As Answer", if my answer works well with ur Query
Narayanan Dayalan  3 hours 0 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Returning a value
• Convert Java to VB
• strange behaviour
• align text file line
• Access 2000 Macro
• Newbie issues working with images on homemade card game
• Chat Program Help
• Convert SVG to image (PNG or else)
• Creating .exe file to debug a dll proyect
• Starting another App