How can i make my form be invisible while my panels are visible

deniz koyuncu 11 Reputation points
2022-01-21T16:59:42.153+00:00

the title is same with this

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,818 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 111.6K Reputation points
    2022-01-21T18:29:24.383+00:00

    Try this fragment for two panels:

    var r = new Region( panel1.Bounds );
    r.Union(panel2.Bounds);
    var p = PointToScreen( Point.Empty );
    r.Translate( p.X - Bounds.X, p.Y - Bounds.Y );
    this.Region = r;
    

    It can be executed in the handler for Load event.


  2. deniz koyuncu 11 Reputation points
    2022-01-21T18:44:42.327+00:00

    i have the panels elipsed i mean i used bunifuelipse so now it works but the problem is theres still white areas left how can i fix that
    also forgot to say i have 3 panels and when i open all 3 the 2. and 3. glitches i mean like one disapears and other comes this happens every 2 sec

    0 comments No comments