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

What are the advantages of using c#?

925


What is helper method in c#?

909


What is regex c#?

887


What does protected internal access modifier mean?

1107


How long does it take to learn c# for unity?

888


Is ram a heap?

899


Can int be null c#?

907


What is the implicit name of the parameter that gets passed into the set method/property of a class?

914


Define c# i/o classes? List the commonly used classes?

972


Can abstract class instantiated c#?

890


What does do in c#?

964


What are cookies in c#?

952


What is state c#?

861


What is the use of command builder?

1026


What is the difference between System.console.WriteLine() and System.console.Write() function?example?

1050