Using WPF you could set the form's backcolor to transpart with no title bar then have two panels with the gap between them, each panel would have their background color set to something other than transparent.
Doing that with winforms, if possible, would be much more work and I would need to think about it.
A simple way to do it with winforms is to set TransparencyKey, for example to less used Color.Fuchsia, then fill a rectangle with that color in Paint event:
C#:
e.Graphics.FillRectangle(Brushes.Fuchsia, new Rectangle(new Point(0, 40), new Size(Width, 20)));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.