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
Can we create instance of private class in c#?
without modifying source code if we compile again, will it be generated MSIL again?
Why delegates are required?
What is gac? How to put assembly in gac?
What are extender provider components? Explain how to use an extender provider in the project.
What is a helper method in c#?
What are indexers in c# .net?
Why data types are important in c#?
What is datagridview in c#?
What is difference between interface and abstraction?
What is property in c#?
What is arraylist class in c#?
Name the control which cannot be placed in mdi?
Why do we use dictionary in c#?
Why constructor is used in c#?