
Transparent control running in IE
I am trying to create something very simple using
Visual Basic 6: An
ActiveX control that, when the mouse moves over it, becomes transparent. I
have come up with a solution, and when I test it from the IDE, it works
great! If I press the "Play" button in the IDE, an Internet Explorer window
is spawned, I see a grey box, and when I move the mouse over it it becomes
transparent. However, if I compile the object and run it outside of the
IDE, the grey box appears and when I move the mouse over it, it never
becomes transparent. I know that the mouse movement is being captured, as I
tested it with a MsgBox... So what's going on???
To do this, by the way, I created a new project, set the BackStyle of the
UserControl to '0 - Transparent', and the following is the only code in the
project:
Private Sub UserControl_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
With UserControl
.AutoRedraw = True
.Cls
.Picture = LoadPicture("")
.MaskPicture = LoadPicture("")
Set UserControl.MaskPicture = .Image
Set UserControl.Picture = .Image
.AutoRedraw = False
End With
End Sub
Thanks in advance to anyone who can help me with this!!!
BTW, apologies, for the double-post to
microsoft.public.windows.inetexplorer.ie55.programming.activexcontrol