Posted on 2005-05-11
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:knowlton
    LVL 21

    Accepted Solution

    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());
    LVL 5

    Author Comment

    ONE DAY this will STICK in my brain.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now