Transparent control running in IE 
Author Message
 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



Mon, 09 Aug 2004 23:13:21 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Running VB program compiled with IE 4 on machine running IE 5

2. HowTo: Launch default browser from Windows Control running in IE browser

3. Running a Control in IE - just a small empty square

4. Running a Control in IE - just a small empty square

5. IE Security setting to run ActiveX control

6. DCOM security problem with client control running in IE.

7. BUG: Transparent Label on Transparent Control Does Not Display

8. Transparent controls are not Transparent in VC++

9. Transparent Label on Transparent User Control Problem

10. BUG: Transparent Label on Transparent Control Does Not Display

11. Active X controls not working in IE 5.5 but works in IE 6.0

12. Can't position control at top left (0,0) of I.E.

 

 
Powered by phpBB® Forum Software