ApplicationsProgramming Solutionsc# textbox

16 Nov 2009, 10:08

in vs.net windows application
i want to call some function when enter is pressed in a textbox, i am performing this check in the textbox keypress event handler

if(e.keychar.equals(keys.enter))
func();

but it is not working correctly
please help

Rating 0 Comments 2
havrekaka
0
havrekaka 19 Nov 2009, 20:07 #
Try this
if(e.keychar.equals(13))
13 is ASCII code for return or enter
Euasss
0
Euasss 04 Dec 2009, 09:07 #
or in KeyDown event
{
if(e.KeyCode == Keys.Back)
}
Reply

You have to login or register to post comments.

piratesofweb
piratesofweb
0 ♠ 0 ♣
Tweet:


Bookmark and Share