How to create a multiline contextmenustrip?

I want to create a multiline contextmenustrip,i.e.,I want to have 1 menu multiline and the rest single line.I tried inserting "&vbnewline" at runtime while assigning the text property,it worked but the height of all the other menus increased as well.I want to know if its possible to keep the height of all menu constant and just increase 1 in a single contextmenustrip.Thanx for any cooperation.
Who is Participating?
Jorge PaulinoConnect With a Mentor IT Pro/DeveloperCommented:
Can you show a screenshot ?
Jorge PaulinoIT Pro/DeveloperCommented:
You can define the AutoSize property to false and define your own size.

        Dim item As New ToolStripMenuItem
        item.AutoSize = False
        item.Size = New Size(120, 100)
        item.Text = "line 1" & vbNewLine & "line 2"

Open in new window

Amitava_MukherjeeAuthor Commented:
Nice Solution :-).
One small hickup, Other menus are increased in height slightly in the same context menu.
Any Suggestion?
Amitava_MukherjeeAuthor Commented:
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.