在TreeView的TreeNode节点上引用tooltip控件生成提示,出现不停的刷新闪烁。各位谁有好的方法?
private void treeView2_MouseMove(object sender, MouseEventArgs e)
        {
            // Get the node at the current mouse pointer location.
            TreeNode theNode = this.treeView2.GetNodeAt(e.X, e.Y);
            // Set a ToolTip only if the mouse pointer is actually paused on a node.
            if ((theNode != null))
            {
                // Verify that the tag property is not "null".
                //if (theNode.Tag != null)
                //{
                    // Change the ToolTip only if the pointer moved to a new node.
                    //if (theNode.Tag.ToString() != toolTip1.GetToolTip(this.treeView2))
                    //{
                    theNode.ToolTipText = "";
                        this.toolTip1.SetToolTip(this.treeView2, theNode.Text.ToString());
                    //}
                //}
                //else
                //{
                    //this.toolTip1.SetToolTip(this.treeView2, theNode.Text.ToString());
                //}
            }
            else     // Pointer is not over a node so clear the ToolTip.
            {
                this.toolTip1.SetToolTip(this.treeView2, "");
            }

解决方案 »

  1.   

    用MouseMove  是不是换个事件好点呢    private void treeView1_NodeMouseHover(object sender, TreeNodeMouseHoverEventArgs e)
        {
          toolTip1.SetToolTip(this.treeView1, e.Node.Text);
        }
      

  2.   

    TreeView 自己的提示就够了
      

  3.   

    TreeView 自己的提示不能显示图片等信息,哪位能帮忙?!
      

  4.   

    如果是asp.net的程序,可以考虑套一个ajax框架。
      

  5.   

      
      以前做过类似的,是延长显示 ToolTip 的时间
      是把 显示 ToolTip的方法重新了,引用了Timer
      你这个不断显示用这种方法也应该可以
      

  6.   

    我也同问,基本很难实现。
    NodeMouseHover事件好了一点
    同意 1楼