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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
jo jo5 reputationPosted Apr 27, 2010, 1:57 PM EDT
System.Reflection.MethodInfo.GetCurrentMethod().Name.ToString()
GustavoRank #1,990 · 732 reputationPosted Apr 27, 2010, 2:06 PM EDT
Thanks, it worked.