Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi experts,
I'm trying to find a possibility to add a "CrLf" to the tooltip property for a command button (BaseCommand) on a toolbar (not on a form, this is easy with the tooltip from the toolbox!)
I tried vbCrLf, ControlChars.CrLf, "<br \>" and Environment.NewLine in the tooltip-string. But there is no reaction, the tooltip ignores it all, he does what he wants.
Has anyone an idea ?

This is the tooltip property section of my command:
VB
Public Overrides ReadOnly Property Tooltip() As String

    Get
        MyBase.m_toolTip = "my first line" & vbCrLf & "and now the second line"
        Return MyBase.Tooltip
    End Get

End Property
Posted
Comments
Sergey Alexandrovich Kryukov 4-Jun-15 10:05am    
What Toolbar, from what UI library? At least give us the full type name, and/or other detail.
—SA
Ralf Meier 4-Jun-15 14:57pm    
Please explain in another way what you want to do.
In the Moment I can't imagine what the goal should be ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900