Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all
this is windows application in c#.net(framework3.5)
i had created the button and the text box manually and more over i want to save that typed data in text-box while running the program , and also i want rise the click event of that button so that pl z give me a idea
thank q
Posted
Updated 8-Jul-10 0:29am
v2

Let us assume you have created a button1 in your code then you can use
button1.Click += Press tab key twice to generate the click event handler for button1.
Then you can write your own code in this.
 
Share this answer
 
v2
Comments
Sandeep Mewara 8-Jul-10 2:15am    
Why do you always wrap your answer in a PRE tag. they are for formatting code parts in question/answer!
You need a book to start with! For now, have a look at these links:
Button.Click Event[^]
C# Events[^]
 
Share this answer
 
button1.Click+=new EventHandler(button1_Click);

private void button1_Click(object sender, EventArgs e)
{
//functionality

}
 
Share this answer
 
You don't say this is a web app, so I don't see what the issue is. If you create a button and add it to your form, and hook to any of it's events, it will work just fine. Perhaps if you posted some code ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900