How to Cut the form into two parts like this

lbebulk

New member
Joined
Apr 18, 2019
Messages
1
Programming Experience
1-3
How to Cut the Form into two parts like this

528


I have tried more than once

Thank You​
 
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)));
 
Back
Top Bottom