views:

31

answers:

2

I have a form (named mainForm.cs) with a datagridview on it.

I must to show a picture (with opacity) over a datagrdiview. To achieve this, I made another form (frmPicture) with a picturebox, and apply the opacity property to the form. It also set the opacity = 100 when the mouse get inside the form (frmPicture) and opacity = 30 when the mouse leave the form. And we need to resize on click.

The problem is when I minimize the mainForm, the other form is still in their place.

I must to find the way like Visual Studios does when the methods appears in a list (after typing a dot) and pressing the Control key to change the opacity of a list.

I hope anybody can help me.

Thanks in advance.

Best regards.

A: 
David Stratton
I don't see the opacity property on Panel control...
Andres
+1  A: 

If you set the Main form as the owner of the form being overlayed, it will minimize with the Main form, i.e.

     OverlayForm form = new OverlayForm();
     form.Show(this);
AaronY
You were right. I did it vefore but I didn't remember.Thank you so much!
Andres