Windows Develop Bookmark and Share   
 index > Windows Forms General > Flickering problem on vista
 

Flickering problem on vista

Hai

      Am using Edit icon in my application,  i will add tooltip while mouse move on the run time

toolTip.SetToolTip(btnAddAssetCategory,

"Click here to Edit new asset category");

run this application on Windows Xp flickering is not occur while movet the mouse on edit icon. Run the same application on Windows Vista  while move the mouse on the Edit icon , tooltip is displayed with flickering. how to handle this. its very urgent for me. i want to fix my bug immediately. pls  any one can help me.

  • Moved byTaylorMichaelLMVPMonday, October 05, 2009 1:50 PMWinForms related (From:Visual C# General)
  •  
rkhema  Monday, October 05, 2009 1:34 PM

Don't change the text of the tooltip in the MouseMove event. Just set it once after the control is created, or even during the MouseEnter event.

Anyway, if you really must change do that in the MouseMove event for some reason, at least ensure that the text you are setting is different to the current one:

string text = "Click here to Edit new asset category";
if (toolTip.GetToolTip (btnAddAssetCategory) != text) {
  toolTip.SetToolTip (btnAddAssetCategory, text);
}

this should take care of the flickering.

HTH
--mc

Mario Cossi  Monday, October 05, 2009 2:02 PM
Make sure that the tooltip is displayed well away from the mouse cursor.  If it overlaps the cursor, it will start blinking rapidly on and off.  Use the ToolTip.Show() method to put the tooltip where you want it to go.

Hans Passant.
nobugz  Monday, October 05, 2009 6:28 PM

You can use google to search for other answers

Custom Search

More Threads

• Get data from textboxes in another application- sendkeys? something else?
• How to add a Single alphabet as hotkey
• Displaying selective rows in a ListView
• Adding UserControl to Windows Forms Application
• How to define multiple columns in a List Box?
• Setting format of text in textbox
• How to get a string from another aplication?
• Acitvex vc++ - hosting Word visually within a WinForm application
• Identify Added controls to a Form ...
• GUI program lose control when runing, show "Not Responding" if click the Form.