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
Explain about WSDL
Can I use parseint?
Can you create sealed abstract class in c#?
Can multiple inheritance implemented in c# ?
Can we have static indexer in c#?
Explain About remoting and web services. Difference between them
What is cli in c#?
What is difference between override and new in c#?
What is the difference between CreateObject() and GetObject()?
Explain deadlock?
How to find out that the code is written as managed or un-managed code?
List down the commonly used types of exceptions in .net
What is parallel foreach c#?
Is std :: string null terminated?
What is c# console application?