Mouse Enter Event not occuring for form which contains a custom control.

Posted on 2007-07-31
Last Modified: 2010-04-23
I created a control and put it on a windows form with the docking set to fill.  Now, when I try to handle mouse enter events in the form which contains the control, the events never occur.  I think the reason is that the control I created and put on the form is somehow handling the event.  However, I never implemented an event handler for the mouse enter event for the custom control.  This appears to be happening with many events... how do I handle these events?
Question by:McBluffin
    LVL 96

    Expert Comment

    by:Bob Learned
    Any control that is on top of the form will capture mouse events.  Can you give me a better idea of what you are trying to do?


    Author Comment

    Specifically, what I'm trying to do is have the Form change it's title text when the mouse is over the title bar.
    LVL 96

    Expert Comment

    by:Bob Learned
    Did you ever have this working?  The form events don't trap the mouse moving over the title bar--that is the non-client area of the form.

    LVL 1

    Accepted Solution

    Hello McBluffin,
    If we can have delegate written in the child control and called from the mouse enter event of the form should solve this issue..



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now