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.
Re: Move Picturebox Over Menu
Why not just disable the CommandBar?
Re: Move Picturebox Over Menu
Quote:
Originally Posted by
Arnoutdv
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.
Re: Move Picturebox Over Menu
Are you using the CommandBar as a RibbonBar?
Re: Move Picturebox Over Menu
Quote:
Originally Posted by
Arnoutdv
Are you using the CommandBar as a RibbonBar?
No, just menu with tool bars.
Re: Move Picturebox Over Menu
Does the PictureBox's ZOrder method not accomplish what you want?
Re: Move Picturebox Over Menu
Quote:
Originally Posted by
clarkgriswald
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.
Re: Move Picturebox Over Menu
Quote:
Originally Posted by
jmsrickland
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.
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.