How will U encapsulate button trigger event into text_box
event of Pressing Enter key?i.e only after pressing Enter
after the text is typed the button trigger event should
activate?
Answer Posted / varun sharma
This should possibly do the trick for purpose
protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
Button_Click(null, null);
}
}
protected void Button_Click(object sender, EventArgs e)
{
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different types of comments in c#?
What are Uses of CLR
What is escape sequence in c#?
What is dependency in software?
What is difference between string and stringbuilder in c#?
How to implement an object pool in c#.net.
How can I produce an assembly?
What is the correct way of declaring an xml namespace?
What is dynamic dispatch?
Can c# inherit multiple classes?
What is check/uncheck?
How many bytes is an int?
What is exe file in c#?
What is default method in c#?
What is datatable and dataset in c#?