Can Menu be shorter than form title?

D

Dave Leach

I am creating an MDI style .NET Windows Form application.
The main window will contain a menu bar, a status bar and
a panel control.

I want the panel control docked on the right edge of the
main MDI window and extend from the bottom edge of the
window to the bottom of the title bar. I want the
status bar docked on the bottom of the main window and
extend from the left edge of the main window to the left
edge of the panel control. I want the menu bar to dock
under the title and extend from the left edge of the main
window to the left edge of the panel control. See the
diagram below.

I have been able to get the status bar to dock as described
above, but I can't get the menu bar to stop at the left
edge of the panel control. It always extends the full
length of the window title and forces the panel control to
dock under the menu instead of under the title.

Is there a way to get the menu to dock as I want (see
below)?

---------------------------------
| Title |
|-------------------------------|
| Menu | P |
|--------------------------| a |
| | n |
| | e |
| | l |
| | |
|--------------------------| |
| Status | |
 
D

Dave Leach

Duke,

Can you provide more information on how to use ContextMenu
and Label controls to simulate a MainMenu control? Is
there an existing sample project to look at?

Thanks,
Dave
-----Original Message-----
I'm afraid that you can't do that. If you want to achieve it, you should
write your own implementation code (Build a new control).

I build a sample to use ContextMenu and Label control to simulate a
MainMenu control, just for your reference.

Best regards,

Duke Sun
Microsoft Online Partner Support
<MCSE/MCDBA/MCSD>

Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and
confers no rights.
 
D

Duke Sun

Based on my research and experience, there seems no such sample available.
You should write your implementation code.

Best regards,

Duke Sun
Microsoft Online Partner Support
<MCSE/MCDBA/MCSD>

Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top