Lol you made me smile this morning!
outerhell
Posts
-
Regular expression for 0 to 1000 -
Sending the button name to a method.Thank you. Got it working now :)
-
Sending the button name to a method."PS please put code in code blocks makes it easier to read!" Thanks for the suggestion :) will use it next time. And thank you for the quick response.
-
Sending the button name to a method.Oww yeah... I'm quite fresh in coding. But thank you very much for the quick response and right what I needed :)
-
Sending the button name to a method.Hi, I'm doing a calendar like program and I'm using buttons as time slots. And I need to simply call a method that will be called by any button that is clicked inside this time slot and when the method is called it will read the button's name. example btn800Am_clicked - will open timeslot btn900Am_clicked - will open timeslot btn1000Am_clicked - will open timeslot private void timeslot_Click(object sender, EventArgs e) { calculate(x.name); } private void calculate(string name) { messagebox.show(name); }