Note that there are some explanatory texts on larger screens.

plurals
  1. POCan someone help me identify why C# tooltips show when they shouldn't?
    text
    copied!<p>I have tool tips running on a C# form and i have a checkbox to disable them showing up.</p> <pre><code>private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { Tool_Tips = false; } else Tool_Tips = true; } </code></pre> <p>where <code>Tool_Tips</code> is a Global public bool.</p> <p>each time I hover over a button I use the code:</p> <pre><code>private void Edge_Down_B_MouseHover(object sender, EventArgs e) { if (Tool_Tips) { Tool_Tip(Tool_Help.Edge_Down, Edge_Down_B); } } </code></pre> <p>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. </p> <p>I even changed the code of those 4 buttons to look like:</p> <pre><code>private void BlackandWhite_B_MouseHover(object sender, EventArgs e) { if (Tool_Tips) { if (!checkBox1.Checked) Tool_Tip(Tool_Help.BlackWhite, BlackandWhite_B); } } </code></pre> <p>and they still show up in normal running mode. they won't show up if i place a breakpoint in.</p> <p>Can anyone tell me why?</p> <p>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.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload