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


Please Help Members By Posting Answers For Below Questions

Can we create instance of private class in c#?

504


without modifying source code if we compile again, will it be generated MSIL again?

488


Why delegates are required?

539


What is gac? How to put assembly in gac?

555


What are extender provider components? Explain how to use an extender provider in the project.

504






What is a helper method in c#?

477


What are indexers in c# .net?

526


Why data types are important in c#?

482


What is datagridview in c#?

645


What is difference between interface and abstraction?

467


What is property in c#?

538


What is arraylist class in c#?

532


Name the control which cannot be placed in mdi?

499


Why do we use dictionary in c#?

499


Why constructor is used in c#?

489