How will U encapsulate button trigger event into text_box event of Pressing Enter key?
Answer Posted / sandipan4allinterview
protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
///do your stuff
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is dll in vb.net?
Define boxing and unboxing in c#?
What are the properties of a string class?
Why do we need generics?
What is the base class in .net from which all the classes are derived from?
How do I format a string in c#?
Why is it important to override gethashcode when equals method is overridden?
What is dbcontext c#?
can multiple catch blocks be executed for a single try statement?
Which function is the entry point for a DLL in MS Windows 3.1?
Why do we need private constructor in c#?
Why do we use class in c#?
What is the difference between iqueryable and ienumerable?
What is super class in c#?
What is the purpose of reserved word using in c#?