Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 992729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:18:46+00:00 2026-05-16T06:18:46+00:00

I have this problem that event called MouseEnter does not fire when mouse button

  • 0

I have this problem that event called “MouseEnter” does not fire when mouse button is held down. How could i fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:18:46+00:00Added an answer on May 16, 2026 at 6:18 am

    That’s by design. You can work around it by using, say, MouseMove:

    private void Form1_MouseMove(object sender, MouseEventArgs e)
    {
        if (e.Button == MouseButtons.Left)
        {
            Point pt = TargetControl.PointToClient(Cursor.Position);
            Rectangle rc = TargetControl.ClientRectangle;
            if (rc.Contains(pt))
            {
                // do what would be done on MouseEnter
            }
        }
    }
    

    This is not ideal, though – if the mouse button is pressed when the mouse is hovering over another control on the form, then it doesn’t appear in the MouseMove event that the button is pressed (as @Hans pointed out, the other control ‘Captures’ the MouseDown). If that’s a problem, then combining the hit test in MouseMove while separately tracking MouseDown and MouseUp on the form should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 500k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Does X have comments? Write your little language aka pseudo… May 16, 2026 at 1:59 pm
  • Editorial Team
    Editorial Team added an answer Try both, then decide. May 16, 2026 at 1:59 pm
  • Editorial Team
    Editorial Team added an answer Omniture does not grab predefined var=value params from a URL… May 16, 2026 at 1:59 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I just came across this weird problem that is happening in IE. In the
I have a process that calls an event when its done. void DoProcess() {
The problem I have a transparent NSView on a transparent NSWindow . The view's
Hello I have problem to put together animations of two separate objects to second
This is a C#, Winform question. I have a TabControl control and I use
I'm creating a file-browser in ASP.Net but I have run into a problem which
Let's say I have some code like this in AS3 for(...) thing = new
I have an extended dialog class that I want to show for 3 seconds
I have an ASP.NET page that contains two div's. Both have search fields and
I have a popup menu that displays dynamically created custom JPanel objects in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.