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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:15:15+00:00 2026-05-22T20:15:15+00:00

I have tool tips running on a C# form and i have a checkbox

  • 0

I have tool tips running on a C# form and i have a checkbox to disable them showing up.

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
    if (checkBox1.Checked)
    {
        Tool_Tips = false;
    }
    else
        Tool_Tips = true;
}

where Tool_Tips is a Global public bool.

each time I hover over a button I use the code:

private void Edge_Down_B_MouseHover(object sender, EventArgs e)
{
    if (Tool_Tips)
    {
        Tool_Tip(Tool_Help.Edge_Down, Edge_Down_B);
    }
}

my problem is that i have 4 buttons out of like 30 that will display a tooltip regardless of the boolean value. If i put a breakpoint in their code it works correctly, but if i remove the breakpoint their tooltip will show up when it shouldnt. I did clean build of release mode, rebuilt the project and tried debug mode and they continue to show a tooltip when they shouldnt.

I even changed the code of those 4 buttons to look like:

private void BlackandWhite_B_MouseHover(object sender, EventArgs e)
{
    if (Tool_Tips)
    {
        if (!checkBox1.Checked)
            Tool_Tip(Tool_Help.BlackWhite, BlackandWhite_B);
    }
}

and they still show up in normal running mode. they won’t show up if i place a breakpoint in.

Can anyone tell me why?

EDIT:
if i run my program, it will start with tooltips disabled with the checkbox checked. I will uncheck the box and i will see tooltips. if i recheck the box to disable the tooltips, the tooltips i have viewed will still show up even though they are disabled.

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

    first of all, make sure there aren’t any other event handlers attached to those 4 buttons’ Click.

    after that try changing your method as:

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            Application.DoEvents();
            Tool_Tips  = !checkBox1.Checked;
        }
    

    the events might had gotten fired before the checkbox have been checked.

    and if that did not work either, inside your Tool_Tip method write:

    if (checkbox1.Checked) return;
    

    and if none of those helped, shoot me in the head :D!

    before shooting me, do this:
    in debug mode disable(or delete) all your breakpoints and put one just in your Tool_Tip method’s first line.

    make the bug show up and your breakpoint be hit.
    then from the debug menu, open Call Stack and check that from where your method has been called. this might lead you to the problem, because I think you method is being called from an unwanted point of code.

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

Sidebar

Related Questions

I have a website in which I provide tool-tips for certain things using a
I have implemented tool tips seemingly successfully in an app which is MFC based
I have a tool that I want to install on my main development box
I have a tool strip which contains a ToolStripDropDownButton. As an alternative access method,
Right now, I have a tool tip that pops up when I hover over
Currently I have a custom tool which generates vanilla-SQL (only using standard SQL), from
Many of us have used Perfmon tool to do performance analysis. Especially with .Net
The only thing I don't have an automated tool for when working with SQL
I have to develop a tool in C# that retrieves some data from an
I have found jQuery to be a great tool to simplify my MVC Views.

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.