Results 1 to 9 of 9

Thread: Move Picturebox Over Menu

  1. #1

    Thread Starter
    Fanatic Member clarkgriswald's Avatar
    Join Date
    Feb 2000
    Location
    USA
    Posts
    799

    Move Picturebox Over Menu

    I am currently using a 3rd party menu system (Codejock's CommandBars) and I wanted to do something a bit strange perhaps. When the user enters a certain "mode" in my application, I wanted to position a "banner" (picturebox) that spans the width of the form and covers the entire menu system area to prevent users from interacting with tools, etc. I do not want to hide the menu/toolbars as this would create some flickering and I really want all the controls to stay in the same location when they enter this mode. I would like to try and avoid using another form if possible.

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    Re: Move Picturebox Over Menu

    Why not just disable the CommandBar?

  3. #3

    Thread Starter
    Fanatic Member clarkgriswald's Avatar
    Join Date
    Feb 2000
    Location
    USA
    Posts
    799

    Re: Move Picturebox Over Menu

    Quote Originally Posted by Arnoutdv View Post
    Why not just disable the CommandBar?
    I do that already, but the main purpose of the banner is to signify that the user is running in a specific mode.

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    Re: Move Picturebox Over Menu

    Are you using the CommandBar as a RibbonBar?

  5. #5

    Thread Starter
    Fanatic Member clarkgriswald's Avatar
    Join Date
    Feb 2000
    Location
    USA
    Posts
    799

    Re: Move Picturebox Over Menu

    Quote Originally Posted by Arnoutdv View Post
    Are you using the CommandBar as a RibbonBar?
    No, just menu with tool bars.

  6. #6
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Move Picturebox Over Menu

    Does the PictureBox's ZOrder method not accomplish what you want?
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  7. #7
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Move Picturebox Over Menu

    Quote Originally Posted by clarkgriswald View Post
    I am currently using a 3rd party menu system (Codejock's CommandBars) and I wanted to do something a bit strange perhaps. When the user enters a certain "mode" in my application, I wanted to position a "banner" (picturebox) that spans the width of the form and covers the entire menu system area to prevent users from interacting with tools, etc. I do not want to hide the menu/toolbars as this would create some flickering and I really want all the controls to stay in the same location when they enter this mode. I would like to try and avoid using another form if possible.
    Sounds like you are contradicting yourself.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  8. #8

    Thread Starter
    Fanatic Member clarkgriswald's Avatar
    Join Date
    Feb 2000
    Location
    USA
    Posts
    799

    Re: Move Picturebox Over Menu

    Quote Originally Posted by jmsrickland View Post
    Sounds like you are contradicting yourself.
    Hide meaning, do not want to set Visible = False, doing so would shift the client controls up...I want to cover the menu system. I have solved this using a floating form for the time being.

  9. #9
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,598

    Re: Move Picturebox Over Menu

    Since the picturebox can be a container, rather than having a picturebox "over" the menu system, perhaps you could put the menu system inside a picturebox.
    The picturebox could contain the banner image, but the banner is not seen as it would be "under" the menu system. Then to see the banner, you could just hide the menu bar, and I assume the client controls wouldn't shift up because the picturebox container would still be on the form.

Tags for this Thread

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