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 / sandipan
Your question is not exactly cleat to me !
But then also assuming your ques i am answering this
[ I THINK YOU WANT TO CAPTURE BUTTON CLICK EVENT WITH ENTER KEY ]
protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
///do your stuff
}
}
REPLY YOUR FEEDBACK !!
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between method overriding and method overloading?
What is the difference between icomparer and icomparable in c#?
Is c and c# the same?
Is it possible to have different access modifiers on the get/set methods of a property?
What is c# console application?
What does using system mean in c#?
Define thread? Explain about multithreading?
Why do we need events in c#?
Why do we need to override in c#?
What is boxing in c#?
What are data types examples?
How to create events for a control? What is custom events? How to create it?
In which format you can pass the value in the sleep function?
Can a struct be null?
Differentiate between method overriding from method overloading with its functionality?