Results 1 to 8 of 8

Thread: [RESOLVED] [2005] MainMenu from left to right freezen!

  1. #1

    Thread Starter
    Banned
    Join Date
    Jul 2007
    Posts
    400

    Resolved [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
    Last edited by Mark103; Feb 28th, 2008 at 06:54 PM.

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] MainMenu from left to right freezen!

    Where do you execute that line?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] MainMenu from left to right freezen!

    And also, use the ContextMenuStrip component as its the "new" replacement for the ContextMenu component.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  4. #4

    Thread Starter
    Banned
    Join Date
    Jul 2007
    Posts
    400

    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

  5. #5

    Thread Starter
    Banned
    Join Date
    Jul 2007
    Posts
    400

    Re: [2005] MainMenu from left to right freezen!

    anyone?

  6. #6

    Thread Starter
    Banned
    Join Date
    Jul 2007
    Posts
    400

    Re: [2005] MainMenu from left to right freezen!

    Found the problem so don't need any help. RESOLVED!
    Last edited by Mark103; Feb 28th, 2008 at 06:54 PM.

  7. #7
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [RESOLVED] [2005] MainMenu from left to right freezen!

    Could you post the solution here incase someone else has this problem in the future?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  8. #8

    Thread Starter
    Banned
    Join Date
    Jul 2007
    Posts
    400

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width