问题描述
我有一个无边界的表单,可以停靠"到屏幕的顶部边缘.在表单内部,我放置了一个工具栏控件,该控件停靠在整个表单中(通过查看任务栏以了解我在说什么).因为无边界表单没有边缘,所以我想沿着表单的底部边缘绘制一条黑线,以将表单与后面的窗口或桌面区分开.
我面临的问题是,无论如何对控制层进行排序,工具栏在停靠时都不会移到线后".我尝试以编程方式将控件发送回无济于事.
关于如何使该行显示在停靠的工具栏上方的任何想法?在此先感谢.
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.
推荐答案
这篇关于在停靠控件上方画一条线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!