Panel1 opens by pressing the button . It is necessary that panel1 disappears when the cursor goes beyond its borders.

    1 answer 1

    The Panel has a MouseLeave event. Use it and:

     private void panel1_MouseLeave(object sender, EventArgs e) { panel1.Visible = false; } 
    • There are components on the panel. If you hover over them, the panel disappears. Can I do something to prevent this from happening? - Eve