|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Textbox, how to detect enter "key" event.Hi All,
Could you please advice that how to detect the enter "key" event.... due to I don't want another button to do "Go" function..... Best regards, Boki. Respond to the Keypress event and look for an ASCII code of 13 (that's the
Enter key) When you detect it (the 13) set it to 0 (zero) then proceed to do what you want after that. Show quoteHide quote "Boki" <bokit***@ms21.hinet.net> wrote in message news:1146187333.832152.234130@i40g2000cwc.googlegroups.com... > Hi All, > > Could you please advice that how to detect the enter "key" event.... > > due to I don't want another button to do "Go" function..... > > Best regards, > Boki. > In the Textbox's KeyDown event, do something like this:
If e.KeyCode = System.Windows.Forms.Keys.Enter Then <do some stuff> else <do something else or nothing at all> end if james Show quoteHide quote "Boki" <bokit***@ms21.hinet.net> wrote in message news:1146187333.832152.234130@i40g2000cwc.googlegroups.com... > Hi All, > > Could you please advice that how to detect the enter "key" event.... > > due to I don't want another button to do "Go" function..... > > Best regards, > Boki. > Bokki,
Try to use the Key Up event. You will be surprised how much information is in the E. Cor Show quoteHide quote "Boki" <bokit***@ms21.hinet.net> schreef in bericht news:1146187333.832152.234130@i40g2000cwc.googlegroups.com... > Hi All, > > Could you please advice that how to detect the enter "key" event.... > > due to I don't want another button to do "Go" function..... > > Best regards, > Boki. >
update form background color
DLL does not load Dynamically Datagrid, binded columns and unbinded columns Can't open a project by iteself? Solution opens every time! simple combo question Stepping between .Net IDE into a VB6 dll call is this possible... Format Function Redirect question FileSystemWatcher any experts here? |
|||||||||||||||||||||||