Posted on 2005-05-11
Medium Priority
Last Modified: 2010-04-16
I use sender so seldomly that I forget what it is used for:

private void labelDescription_MouseHover(object sender, System.EventArgs e)


What is sender in this MouseHover event skeleton method?
Question by:Tom Knowlton
LVL 21

Accepted Solution

Yurich earned 2000 total points
ID: 13982706
it will be a control which you set your MouseHover event on, e.g. a button if you set this handler for a button.

to check what it is, you can do the following:

private void labelDescription_MouseHover(object sender, System.EventArgs e)
       MessageBox.Show( sender.ToString());

Author Comment

by:Tom Knowlton
ID: 13983223
ONE DAY this will STICK in my brain.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question