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:
'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 :)
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
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 :)