Vista上的闪烁工具提示 [英] Flickering ToolTip on Vista

查看:119
本文介绍了Vista上的闪烁工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当鼠标移动到控件上时,为什么Vista上的任何控件上的工具提示总是不停地闪烁,例如按钮控件,标签控件,复选框控件和文本框控件等。尽管有.net框架1.1或2.0,但在Vista上运行的所有控件都出现了闪烁问题。

但是在早期的Windows操作系统上没问题。

Why the tooltip on any control with Vista always flickers without stop when the mouse move over the control,such as button control ,label control , checkbox control and textbox control etc . All of controls run on Vista appear flickering issue in despite of .net framework 1.1 or 2.0.

    But that would be ok on earlier windows OS.

这似乎是windows vista的渲染问题。

    This seems to be rendering issue with windows vista.

详情步骤:

1)在窗体上拖动按钮控件和工具提示控件

 1) Drag a button control and a tooltip control on form

2)使用MouseMove事件按钮

 2) Use the button  MouseMove event 

3)添加一些代码如下所示

 3) add some code like the below

private void button1_MouseMove(object sender,System.Windows.Forms.MouseEventArgs e)
{
this.toolTip1。 SetToolTip(button1,"Flickering ToolTip on Button!");
}

  private void button1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
  {
       this.toolTip1.SetToolTip(button1,"Flickering ToolTip on Button!");
  }

运行winform,将鼠标移到按钮上,将显示闪烁的工具提示

  Run the winform , move mouse over the button , the flickering tooltip would be shown

推荐答案

为什么当鼠标移动到控件上时,任何带Vista控件的工具提示都会不停地闪烁,例如按钮控件,标签控件,复选框控件和文本框控件等。尽管有.net框架1.1或2.0,所有在Vista上运行的控件都会出现闪烁问题。

      Why the tooltip on any control with Vista always flickers without stop when the mouse move over the control,such as button control ,label control , checkbox control and textbox control etc . All of controls run on Vista appear flickering issue in despite of .net framework 1.1 or 2.0.

但是在早期的Windows操作系统上这没问题。

    But that would be ok on earlier windows OS.

这似乎是windows vista的渲染问题。

    This seems to be rendering issue with windows vista.

详细步骤:

1)在窗体上拖动按钮控件和工具提示控件

 1) Drag a button control and a tooltip control on form

2)使用MouseMove事件按钮

 2) Use the button  MouseMove event 

3)添加如下代码

private void button1_MouseMove( object sender,System.Windows.Forms.MouseEventArgs e)
{
this.toolTip1.SetToolTip(button1,"Flickering ToolTip on Button!");
}

  private void button1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
  {
       this.toolTip1.SetToolTip(button1,"Flickering ToolTip on Button!");
  }

运行winform,将鼠标移到按钮上,将显示闪烁的工具提示

  Run the winform , move mouse over the button , the flickering tooltip would be shown


这篇关于Vista上的闪烁工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆