How to make a form like RocketDock

problem description

as the title, my original idea was to make something like RocketDock, but first of all, I began to encounter difficulties when I drew the form. If you set the Opacity of the form to 0, then all the controls on the form together with the above are transparent. But if you don"t, the form will have a color when it was built. (note: this place must be transparent, otherwise it will be funny to transplant it. )

the environmental background of the problems and what methods you have tried

Development environment: Win10 Professional Edition, VS2017 Community Edition

tried method:

1. Directly set the background of the form to color.fromArgb (), but throw exception 1.
2. The test uses MDI forms with 0 transparency, then creates a new Form object and joins the MDI form like space, but throws exception 2.
3. The test sets the Form object as a non-top-level object, but it is transparent, and the opacity of the Form object does not take effect.

related codes

/ / Please paste the text of the code below (do not replace the code with pictures)
frmTest.backColor=Color.fromArgb (2005,255J 0);

MDIParent1.Opacity=0;
Form frmChild=new Form ();
frmChild.BackColor=Color.fromArgb.
frmChild.TopLevel=false;

what result do you expect? What is the error message actually seen?

exception 1, the control does not support transparent background color

exception 2, cannot add top-level control to control

< H2 > Daniel who thinks no, TAT has had a headache for several days < / H2 >
Jul.12,2022
Menu