How will U encapsulate button trigger event into text_box event of Pressing Enter key?

Answers were Sorted based on User's Feedback



How will U encapsulate button trigger event into text_box event of Pressing Enter key?..

Answer / ram

by using textchanged event u can fire trigger

Is This Answer Correct ?    8 Yes 3 No

How will U encapsulate button trigger event into text_box event of Pressing Enter key?..

Answer / 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

How will U encapsulate button trigger event into text_box event of Pressing Enter key?..

Answer / arvind kumar

encapsulation is a process in which we can get all the
imformation .

Is This Answer Correct ?    0 Yes 10 No

Post New Answer

More C Sharp Interview Questions

How do I join one form to another in c#?

0 Answers  


Which type of variables are under the control of garbage collector?

4 Answers   Kanbay,


What is the difference between readonly and const

4 Answers   Emphasis,


What are virtual classes in c#?

0 Answers  


How do I do a case-insensitive string comparison?

0 Answers  






What is an inheritance ?Give an example in which inheritance is used?

0 Answers   Siebel,


What are data types examples?

0 Answers  


Is lazy thread safe c#?

0 Answers  


what are the best design patterns for C#.Net?

1 Answers  


Define the term immutable ?

0 Answers   Siebel,


Which framework is best for desktop application?

0 Answers  


Can int be null in c#?

0 Answers  


Categories