I would like to get the name of the event that I am in. Below is some test code that I am using to try to get this.
What would I need to change
private void buttonEvent_Click(object sender, EventArgs e)
{
MessageBox.Show("Where Am I: " +
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
jo joPosted Apr 27, 2010, 5:57 PM
System.Reflection.MethodInfo.GetCurrentMethod().Name.ToString()
GustavoPosted Apr 27, 2010, 6:06 PM
Thanks, it worked.