|
-
Jan 16th, 2014, 08:22 AM
#1
Thread Starter
Fanatic Member
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.
-
Jan 16th, 2014, 08:52 AM
#2
Re: Move Picturebox Over Menu
Why not just disable the CommandBar?
-
Jan 16th, 2014, 08:54 AM
#3
Thread Starter
Fanatic Member
Re: Move Picturebox Over Menu
 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.
-
Jan 16th, 2014, 09:01 AM
#4
Re: Move Picturebox Over Menu
Are you using the CommandBar as a RibbonBar?
-
Jan 16th, 2014, 09:05 AM
#5
Thread Starter
Fanatic Member
Re: Move Picturebox Over Menu
 Originally Posted by Arnoutdv
Are you using the CommandBar as a RibbonBar?
No, just menu with tool bars.
-
Jan 16th, 2014, 11:38 AM
#6
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)
-
Jan 16th, 2014, 11:39 AM
#7
Re: Move Picturebox Over Menu
 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.
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.
-
Jan 16th, 2014, 11:54 AM
#8
Thread Starter
Fanatic Member
Re: Move Picturebox Over Menu
 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.
-
Jan 16th, 2014, 12:27 PM
#9
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|