winform datagridview 自定义tooltip


代码如下:

 

1 private void toolTip1_Draw(object sender, DrawToolTipEventArgs e)
2         {
3            e.Graphics.DrawEllipse(Pens.Red, e.Bounds);
4             
5             e.Graphics.FillRectangle(Brushes.Blue, e.Bounds);
6        // e.Graphics.DrawRectangle(Pens.Chocolate, new Rectangle(0, 0, e.Bounds.Width - 1, e.Bounds.Height - 1));
7         e.Graphics.DrawString(this.toolTip1.ToolTipTitle + e.ToolTipText, e.Font, Brushes.Red, e.Bounds);
8     
9         }

相关文章:

  • 2021-08-21
  • 2021-10-10
  • 2021-08-31
  • 2021-08-14
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
猜你喜欢
  • 2021-05-29
  • 2022-03-04
  • 2022-02-18
  • 2022-12-23
  • 2021-08-21
  • 2021-12-14
相关资源
相似解决方案