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
Applications → Programming Solutions → c# textbox16 Nov 2009, 10:08 You have to login or register to post comments. |



if(e.keychar.equals(13))
13 is ASCII code for return or enter
{
if(e.KeyCode == Keys.Back)
}