C#
C#

help

Root Question Message

AntonC
AntonC11/12/2022
❔ Winforms rotated text in ToolStripButton appears bold

When setting the direction of text to e.g. Vertical270, the text in the button becomes different, either bold or lower quality, I'm not sure. How do I fix this?
plam
plam11/12/2022
Have you tried rendering the specific text on a button via its popup event?
AntonC
AntonC11/12/2022
no idea what you're talking about
plam
plam11/12/2022
void tooltip_Popup(object sender, PopupEventArgs e)
{
    e.ToolTipSize = TextRenderer.MeasureText(toolTipText, new Font("Courier New", 10.0f, FontStyle.Bold )); // !
    e.ToolTipSize = new Size(e.ToolTipSize.Width + TOOLTIP_XOFFSET, e.ToolTipSize.Height + TOOLTIP_YOFFSET);
}
AntonC
AntonC11/12/2022
Not tool tip, tool strip
plam
plam11/12/2022
It's got the property as well.
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy