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

  • SEARCH
  • Home
  • 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 7189215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:15:15+00:00 2026-05-28T19:15:15+00:00

So i have a Panel which on Mouse Enter and Mouse Leave i change

  • 0

So i have a Panel which on Mouse Enter and Mouse Leave i change the visibility of some controls which are docked inside it.

Problem is whenever I hover over a control within the panel the Mouse Enter then moves to that indivual control and thus they are made invisible.

Is there any way i can make this work without having to code these two events for each control within the panel?

Cheers 🙂

  • 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-28T19:15:16+00:00Added an answer on May 28, 2026 at 7:15 pm

    Interesting problem. If you put a Console.WriteLine in the MouseEnter or MouseLeave you will notice that when your mouse moves over the control it hides which causes the mouse to be back over the panel which then shows the control which causes the control to hide …

    The only way I figured out how to accomplish your request was to remove the MouseEnter and MouseLeave events. Then I added a MouseMove event to the form containing the panel. I also added a MouseMove event to the panel. Both events call a routine that checks the coordinates of the mouse to determine if it is over the panel. If the MouseCheck routine returns true then show the controls, if not then hide them. The sample below is C# but I’m sure you can grab the idea.

       private bool MouseCheck(Control ctl, Point point)
        {
            bool blnRet = false;
    
            if (point.X < ctl.Left)
            {
                blnRet = false;
            }
            else if (point.X > ctl.Left + ctl.Width)
            {
                blnRet = false;
            }
            else if (point.Y < ctl.Top)
            {
                blnRet = false;
            }
            else if (point.Y > ctl.Top + ctl.Height)
            {
                blnRet = false;
            }
            else
            {
                blnRet = true;
            }
    
            return blnRet;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a hover slide down panel which needs a delay when mouse leave.
i have a panel which iam showing as pop up with few textbox controls
I have a panel on an aspx page which contains an UpdatePanel. This panel
I have a panel with transparent background which i use to draw an image.
i have a panel (A), which contains 3 other panels (AA, AB, AC). Each
I have a preferences panel in my application in which I have a NSColorWell
I have a button which is in update panel. When I click on button
I have made a basic ascx control which is just a panel with a
I have a hidden div which I reveal with the jquery fadein() method: $(#panel).fadeIn(slow);
I have a wx.Frame, in which there is a main wx.Panel with several widgets

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.