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 callback methods in c#?
What is icollection in c#?
What is an array? Give the syntax for a single and multi-dimensional array?
What is the execution entry point for a c# console application?
Can you declare a class or a struct as constant?
How do I run managed code in a process?
What is check/uncheck?
What is the difference between static and private constructor?
What happens if you add duplicate elements to a set?
What is yield c#?
Does the system.exception class have any cool features?
Can I fly with a loop recorder?
Can dictionary have duplicate keys c#?
What is the main purpose of linq?
What is managed or unmanaged code?