private void TT_Draw(System.Object sender, System.Windows.Forms.DrawToolTipEventArgs e) { e.DrawBackground(); e.DrawBorder(); using (StringFormat sf = new StringFormat()) { sf.Alignment = StringAlignment.Center; sf.LineAlignment = StringAlignment.Center; using (Font f = new Font(TT_FontFamily, TT_FontSize)) { e.Graphics.DrawString(e.ToolTipText, f, SystemBrushes.ActiveCaptionText, e.Bounds, sf); } } }
private void tp_Draw(object sender, System.Windows.Forms.DrawToolTipEventArgs e) { e.DrawBackground(); e.DrawBorder(); e.DrawText(); }