0

hi!

I am developing a window based application. I want to show my menu to be separated by a vertical separator. Just like this:

File | Edit


Anyone?Is it possible?

3
Contributors
6
Replies
8
Views
7 Years
Discussion Span
Last Post by leahrose87
0

ToolStripMenuItem can contain pipe-character (see the pic).

If you want that the MenuStrip itself looks like "File | Edit", you have to build your own menu system. That's not a standard Windows application style, more like something you see in the web-pages (like in this page too). Why would you want your Windows application to look like a web-page?

HTH

Attachments MenuCapture01.JPG 12.66 KB
0

Yah your right! I want my MenuStrip tp look like "File | Edit". My boss demanded me to do it so I had no choice. Can you help me how?

0

on click event of file make edits visible property true and keep the property of edit and other option false

0

You can add pipe characters as top-level menu items and name them for example mnuPipe1, mnuPipe2 etc. (see the attachment).

The only problem is, when you hover mouse over the "pipemenuitem" it gets high-lighted like any other menu item.

HTH

Attachments menu1.jpg 9.36 KB
0

yah right! I already tried that but I don't like my menu to be like that!
Thank you for all your response! God bless!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.