Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a borderless form that I'm "docking" onto the top edge of my screen. Inside of the form, I'm placing a single toolstrip control, which docks across the entire form (picture the taskbar to get an idea of what I'm talking about). Because the borderless form has no edge to it, I wanted to draw a black line along the bottom edge of the form to differentiate the form from the windows or desktop behind it.

The problem that I'm facing is that the toolstrip will not move "behind" the line when it's docked, no matter how I order the control layers. I've tried programatically sending the control to back to no avail either.

Any ideas on how to get the line to show above the docked toolstrip? Thanks in advance.
Posted

1 solution

The idea is simple: what is your "black line"? This is actually a rectangle with width or height of 1 pixel or so. So, represent your line using a Panel of appropriate color and size and dock this panel accordingly.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900