Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / varun sharma

This should possibly do the trick for purpose

protected void Button1_KeyDown(object sender, EventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
Button_Click(null, null);
}
}


protected void Button_Click(object sender, EventArgs e)
{

}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about WSDL

991


Can I use parseint?

833


Can you create sealed abstract class in c#?

824


Can multiple inheritance implemented in c# ?

866


Can we have static indexer in c#?

850


Explain About remoting and web services. Difference between them

906


What is cli in c#?

883


What is difference between override and new in c#?

1012


What is the difference between CreateObject() and GetObject()?

1021


Explain deadlock?

912


How to find out that the code is written as managed or un-managed code?

1031


List down the commonly used types of exceptions in .net

839


What is parallel foreach c#?

896


Is std :: string null terminated?

850


What is c# console application?

877