mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 26 Dec 2011 03:00 PM |
This is in C#, btw
So far I am stumped.
okay, so here is my button:
Button thisButton = new Button()
Controls.Add(thisButton)
but I am unsure of how to create an event to the button so when I click it, something happens(MessageBox.Show, etc)
Help? |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 26 Dec 2011 03:03 PM |
| btn.Click += new EventHandler(delegate(object sender, EventArgs e) { }); |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 26 Dec 2011 03:04 PM |
| Thanks, I'm doing to go test it now :D |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 26 Dec 2011 03:06 PM |
It works :D
+1 respect for LocalChum/Walter%d%d%d |
|
|
| Report Abuse |
|
|