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 advantages of using c#?
What is helper method in c#?
What is regex c#?
What does protected internal access modifier mean?
How long does it take to learn c# for unity?
Is ram a heap?
Can int be null c#?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
Define c# i/o classes? List the commonly used classes?
Can abstract class instantiated c#?
What does do in c#?
What are cookies in c#?
What is state c#?
What is the use of command builder?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?