Mainmenu alignment

Antoine

Regular
Joined
Aug 12, 2003
Messages
58
Location
The Netherlands
Dear,

Is it possible in vb.net to create menuitems on the right of the mainmenu ?

I mean I have on the left side: File, Edit, etc....
Then a lot of space
And then on the right side: Help or something ?

Thanks in advance
Antoine
 
That is not what I meant, I want a menu option appear on the most right available position. Something like:

"File Options Othermenu anothermenu Help"

Where File is the most left position and Help is the most right
 
Hey!

1st - Why?

2nd - That's not a standard behaviour, users are not used to that, and so you shouldn't re-invent the wheel and stick with the patterns.

3rd - As I said, it's not a standard behaviour, so the .net Framework team didn't made it possible... I don't know if you can Inherit from the MainMenu control and create that functionality your self but... read my 2nd point again...

Alex :p
 
My answer still stands. As long as the form is a static size... right click and click Insert New until the menu is all the way to the right! If you want something with more control, either inherit or wrap the mainmenu control and draw the menuitem yourself. All the menuitems have a ownerdraw property.
 
I don't use those kind of work arounds on my apps...
Sooner or latter they will endup messing around, so I keep avoiding it.

If I really want something I have 2 choices...
1- Buy a control that does just what I need.
2- Build the control that does just what I need.

Never:
Make a control do something it can't, like the first option you stated:
right click and click Insert New until the menu is all the way to the right!

This i smore like it should be:
If you want something with more control, either inherit or wrap the mainmenu control and draw the menuitem yourself.

Alex :p
 
Back
Top