[RESOLVED] [2005] MainMenu from left to right freezen!
Hi guys
I need your help, maybe many of you know about this. I have no problem to move the text from left to right with context menu which they make immediately, but the problem with mainmenu is that when I tried to move the text from left to right and they freezen slowly didn't move immediately. Here it the code:
Code:
Me.ContextMenu1.RightToLeft = Windows.Forms.RightToLeft.Yes
Are there any other situcation that I can move the menu items to the right immediately without being freezen??
Thanks,
Mark
Re: [2005] MainMenu from left to right freezen!
Where do you execute that line?
Re: [2005] MainMenu from left to right freezen!
And also, use the ContextMenuStrip component as its the "new" replacement for the ContextMenu component.
Re: [2005] MainMenu from left to right freezen!
Oh sorry, it was my mistake and I didn't means to say it. There is a problem with MainMenu1 when I tried to control them from left to right side.
Here it the code:
Code:
Me.MainMenu1.RightToLeft = Windows.Forms.RightToLeft.Yes
Do you know why mainmenu goes frozen when I contol them and put from left to right side??
Hope there is a way to get it solve without being frozen!
Thanks,
Mark
Re: [2005] MainMenu from left to right freezen!
Re: [2005] MainMenu from left to right freezen!
Found the problem so don't need any help. RESOLVED! :thumb:
Re: [RESOLVED] [2005] MainMenu from left to right freezen!
Could you post the solution here incase someone else has this problem in the future? :)
Re: [RESOLVED] [2005] MainMenu from left to right freezen!
ok, here it is:
Code:
Me.MainMenu1.RightToLeft = Windows.Forms.RightToLeft.Yes
MainMenu1.MenuItems.Add(mnuFile)
MainMenu1.MenuItems.Add(mnuView)
MainMenu1.MenuItems.Add(Tools)
MainMenu1.MenuItems.Add(Help)
It will actually works when you put the name of your form, E.G the name of the file menu would be 'mnuFile' so put your own menu name on the code next to .Add.
You can put on many as you can and you will see it will works :)
Thanks,
Mark