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 is string pool in c#?

1059


What is a class in unity?

960


What is typeof c#?

1000


How do I trim a space in c#?

943


Why is main static in c#?

1004


What is the diff between System.String and System.Text.StringBuilder classes?

1065


What is a hashset c#?

1159


What is Implementation inheritance and interface inheritance?

1071


What is the use of delegate?

1020


What is singleordefault?

951


What is private class in c#?

981


If the original method is not static you can declare an override method to be static or not?

992


can you declare an override method to be static if the original method is not static?

1063


Are c# objects passed by reference?

939


Can a class have multiple constructors c#?

925