为什么dataGridView没有工具提示呢?

celebrate 2006-08-09 01:53:55
下面的代码,给textbox1成功的添加了工具提示,可是dataGridView1还是没有工具提示??
为什么噢?

ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 25000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 0;
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(dataGridView1, "good afternoon!");
toolTip1.SetToolTip(textbox1, "hi");
dataGridView1.ShowCellToolTips = true;
...全文
236 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
celebrate 2006-08-14
  • 打赏
  • 举报
回复
谢谢cainiaoxuefei()!
cainiaoxuefei 2006-08-12
  • 打赏
  • 举报
回复
帮楼主顶
celebrate 2006-08-12
  • 打赏
  • 举报
回复
晕.
celebrate 2006-08-10
  • 打赏
  • 举报
回复
谢谢Eddie005(♂) №.零零伍 (♂):

toolTip1.SetToolTip(dataGridView1, "good afternoon!");
dataGridView1.ShowCellToolTips = false;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

可是这样子设置还是不行啊.

Eddie005 2006-08-09
  • 打赏
  • 举报
回复
toolTip1.SetToolTip(dataGridView1, "good afternoon!");
dataGridView1.ShowCellToolTips = false;


//toolTip1.SetToolTip(dataGridView1, "good afternoon!");
dataGridView1.ShowCellToolTips = true;

两者只能择其一~
TaichiTang 2006-08-09
  • 打赏
  • 举报
回复
mark

110,560

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧