Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Using LaVolpe's AlphaImgCtl activeX within a controls array mouse events problem!

$
0
0
I am using LaVolpe's AlphaImgCtl activeX to add .png images to my project. I created at designtime a controls array of AlphaImgCtl. I want to <do something> when the mouse is down on AlphaImgCtl. I used this:

Code:

Private Sub button_MouseDown(Index As Integer, button As Integer, Shift As Integer, X As Single, Y As Single)
button(Index).picture = btnClk.picture
End Sub

'button' is the name of the control that created the array at designtime. 'btnClk' is just another picture.
But when I write the code it won't even show that drop down list of properties, and when I debug and click on the control, it says:

"Compile Error: Array Expected"

What can I do about this? When I use this code in the other mouse events of the AlphaImgCtl activeX such as Mouse_Enter and Mouse_Exit, it works perfectly.. Thank You in advance :)

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>