data.gridview中的VB.NET气球工具提示。 [英] VB.NET Balloon tooltip in datagridview.

查看:76
本文介绍了data.gridview中的VB.NET气球工具提示。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一个代码,使用mousehover事件在datagridview的选定单元格上显示工具提示气球。但问题是我总是需要在工具提示显示之前将鼠标指向系统外部。我想要的是,每当我将鼠标指针悬停在所选单元格上时,它将显示气球工具提示..请注意,仅在所选单元格中。知道怎么做了吗?非常感谢..





或者如果您对如何在单元格上显示气球工具提示有所了解悬停没有点击它,它更好..再次感谢!!

解决方案

确保DataGridView上的ShowCellToolTips设置为True

添加工具提示在单元格1,1例如:

 DataGridView1( 1  1 )。ToolTipText =  这是单元格1,1 <的工具提示/ pre> 

I already have a code that show a tool tip balloon on the selected cell of the datagridview using the mousehover event. But the problem is i always need to point the mouse outside the system before the tooltip show. What i want is that whenever i hover the mouse pointer on the selected cell it will show the balloon tool tip.. Note that ONLY in the selected cell. Got some idea on how to do it? Thanks a lot..


OR if you have some idea on how will i show the balloon tool tip on a cell whenever it is hover WITHOUT clicking it, it is better.. Thanks again!!

解决方案

Make sure ShowCellToolTips on DataGridView set to True
to add tooltip on cell 1,1 for example:

DataGridView1(1, 1).ToolTipText = "this is tooltip for cell 1,1"


这篇关于data.gridview中的VB.NET气球工具提示。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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