vb.net tooltip display width

in vb.net how do you set the display width for tool tips.

when i enter long descriptions they display as wide as my screen.
what can i do to limit the width and force the wrap.
this can't be that hard can it.

           Dim scToolTip As New ToolTip
            ' Set up the delays for the ToolTip.
            scToolTip.AutoPopDelay = 5000
            scToolTip.InitialDelay = 100
            scToolTip.ReshowDelay = 500
            scToolTip.ShowAlways = True
Who is Participating?
There is no way i can find of minimising the width, howevre if you find out at what point you reach your favoured width for the tooltip you could make it perform a line feed.

For example:-

            Dim scToolTip As New ToolTip
            ' Set up the delays for the ToolTip.
            With scToolTip
                   .AutoPopDelay = 5000
                   .InitialDelay = 100
                   .ReshowDelay = 500
                   .ShowAlways = True
                   .SetToolTip(me.Control, "This is the first Line" & Chr(10) & "And this is the second")
            End With

This would create a tooltip on the me.Control (whatever control you decide) saying:-

This is the first line
And this is the second

The Chr(10) is the ASCII character code for a line feed.
AutoeformsAuthor Commented:
didn't solve it but i inserted line feeds at the propler location and made the problem go away
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.