How to Make Form Transparent While Dragging / Out of Focus?
I was wondering how to make my form turn transparent when I go to move it by dragging it, and then bring it back to opaque once I let go of it. Also, how could I make the form turn transparent while it is out of focus, and turn opaque when it regains focus?
A solution to either or both of the problems would be appreciated.
Thank you.
[354 byte] By [
blabus] at [2007-12-24]
Thanks for the help nobugz. Activate and deactivate worked. Also, I solved the other one as well- I used this code:
Private
Sub MainForm_ResizeBegin(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ResizeBeginMe.Opacity = 0.6End SubPrivate Sub MainForm_ResizeEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ResizeEndMe.Opacity = 1End SubIt works great, whether I'm resizing the control or just moving it.
Anyway, thanks for your help.