473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Ordering two controls that dock "top"?

I have an MDI Parent form with a toolstrip and menustrip. The
menustrip is always the top most. Both are Docked to Top. I
contemplated using a toolstripcontainer but then removed it. I had to
redock my toolstrip and menustrip. Now the toolstrip is always top
most. I added a new MDI Parent form and can't find any differences.
How do I get the menustrip to be top most?

Also, is there a way to get the menu strip items (opening of a menu) to
be transparent, such as this:
http://www.windowsforms.net/WhidbeyF...4&Cat=Controls

Thanks,
Brett

Mar 29 '06 #1
3 12534

Brett Romero wrote:
I have an MDI Parent form with a toolstrip and menustrip. The
menustrip is always the top most. Both are Docked to Top. I
contemplated using a toolstripcontainer but then removed it. I had to
redock my toolstrip and menustrip. Now the toolstrip is always top
most. I added a new MDI Parent form and can't find any differences.
How do I get the menustrip to be top most?
Between multiple controls that are Docked in the same place, it's the
Z-Order that decides the order they dock in. In the visual designer,
use (right click) Send to Back / Bring to Front; in code, use
Control.SendToBack / .BringToFront. It's not intuitively (to me,
anyway) obvious which way round is which, so play with it till it makes
sense :)

Also, is there a way to get the menu strip items (opening of a menu) to
be transparent, such as this:
http://www.windowsforms.net/WhidbeyF...4&Cat=Controls


You want the actual menu strip to be transparent? Hmm, don't think you
can do that. It might look a bit odd?

--
Larry Lard
Replies to group please

Mar 30 '06 #2
Z-Order doesn't affect which control will dock top most.

I want the menu that opens when a user clicks a menu strip item to be
transparent. So no transparency until the user does something. The
actual always visible menu strip will remain non transparent. I think
you are correct though in that it cannot be done.

Thanks,
Brett

Mar 30 '06 #3
I stand corrected. The one you want to be top most should have the
lower Z Order, which means furtherest back. It seems backwards to me
and I discovered it by accident.

Brett

Mar 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob McLennan - ZETLAND | last post by:
Hi, I'm relatively clueless when it comes to correct ASP syntax. I'm testing out a search form for my company's website which is done in ASP. The results are displayed as per the code shown at the...
1
by: boonkit | last post by:
Hi all, I cannot find MySQl performance info at linux "top" command. I already tested on slow MySQL query that took more than 5 minutes (create fulltext index), but during the 5 minutes, i...
19
by: Mason A. Clark | last post by:
How was I to know that "top" means "top" in MSIE6 ?? I was testing <a name="top"></a> at the top of the page with <a href="#top>go to top</a> at the bottom of the page. It always worked in...
6
by: Mason A. Clark | last post by:
LAST WORD(s): 1. MSIE6 and Firefox will go to the top of the page on command <a href="#top">go upsy</a> even if there is NO name="top" or id="top" They know what a "top" is :-) Opera...
16
by: Gufus | last post by:
Hi Group... <a name="#top"></a> ----del---- ----del---- <img SRC="images/top.gif" USEMAP="#top" BORDER=0> <map NAME="top">
2
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the...
1
by: sheldonlg | last post by:
I define a div, excItem, with absolute positioning and with a top of 400px. I then call a javascript function which does toggling of visibility and should do positioning as well. I loop though...
1
by: power9888 | last post by:
Can anyone help to resolve this issue please? I have a bookmark in the page #top. I need to use javascript to move to the move mark top. However, the javascript location.href = "#top"; does not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.