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 4242318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:25:34+00:00 2026-05-21T03:25:34+00:00

I have a form with several levels of container nesting (tab controls, tables, panels).

  • 0

I have a form with several levels of container nesting (tab controls, tables, panels). The lowest-level controls all have tooltip text. The tooltip works (some of the time, but that’s another can of worms). I’d like to add a small bit of code that changes the MDI parent’s status bar text to equal the tooltip text of any control that the mouse is over. If I use MouseMove on the form, it picks up movement on the form but not on any of the child controls. If I use MouseLeave, it only picks up the mouse moving to the topmost child (a tab control) and nothing on the inside.

I might be able to recurse through all of the containers and add MouseLeave handlers, but that seems nasty. Hints on the simplest way to accomplish this would be appreciated. Thanks.

  • 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-21T03:25:34+00:00Added an answer on May 21, 2026 at 3:25 am

    For reference, here is my non-ideal recursive solution that is executed in the form’s constructor:

            Action<Control> mouseListen = null;
            mouseListen = control =>
            {
                string toolText = toolTip.GetToolTip(control);
                if (toolText != "")
                {
                    control.MouseEnter += (sender, args) =>
                        { Program.MainForm.Status = toolText; };
                    control.MouseLeave += (sender, args) =>
                        { Program.MainForm.Status = Program.MainForm.DefaultStatus; };
                }
                foreach (Control child in control.Controls)
                    mouseListen(child);
            };
            mouseListen(this);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one form with several text fields and one button. When i enter
I have a form with several text boxes on it. I only want to
I have a Form with several special controls on it that is the main
I have a base form with several controls including 1 label. This form is
I have a form containing several drop lists and a text field, and a
I have a form that is dynamically created, on this form are several radio
I have a form in which several buttons are added at runtime via a
I have an InfoPath form with several fields on, the problem is that one
I have a form in VB.Net with Autoscroll enabled and several ComboBoxes within it.
I have a chart on a Windows Form with several line graphs. I would

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.