private void _toolTipRtfListOfSearches_Draw(object sender, DrawToolTipEventArgs e)
{
// Draw the custom background.
e.Graphics.FillRectangle(SystemBrushes.Window, e.Bounds);
// Draw the standard border.
e.DrawBorder();
// Draw the custom text.
// The using block will dispose the StringFormat automatically.
using (StringFormat sf = new StringFormat())
{
//sf.Alignment = StringAlignment.Near;
//sf.LineAlignment = StringAlignment.Near;
//sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.None;
//sf.FormatFlags = StringFormatFlags.NoWrap;
using (Font f = new Font("Courier New", 10))
{
e.Graphics.DrawString(e.ToolTipText, f,
SystemBrushes.ActiveCaptionText, e.Bounds, sf);
}
}
}