MikeBronner
Programmer
Hi all,
I was wondering if someone has come across this problem and has found a solution:
I have a transparent control, which when click, should add a shape control at the spot that is clicked. This works fine if I have the backstyle set to opaque, everything works as expected. However, if I have it set at transparent, it only works on the first click, at which point it turns transparent. After that I can't click on anything anymore.
Any ideas? Here's the code to mess with:
Thanks for any and all help
Take Care,
Mike
I was wondering if someone has come across this problem and has found a solution:
I have a transparent control, which when click, should add a shape control at the spot that is clicked. This works fine if I have the backstyle set to opaque, everything works as expected. However, if I have it set at transparent, it only works on the first click, at which point it turns transparent. After that I can't click on anything anymore.
Any ideas? Here's the code to mess with:
Code:
Option Explicit
Dim lngDownX As Long
Dim lngDownY As Long
Private Sub UserControl_Click()
Call Load(arrCircle(arrCircle.Count))
arrCircle(arrCircle.Count - 1).Left = lngDownX - (arrCircle(arrCircle.Count - 1).Width / 2)
arrCircle(arrCircle.Count - 1).Top = lngDownY - (arrCircle(arrCircle.Count - 1).Height / 2)
arrCircle(arrCircle.Count - 1).Visible = True
Call arrCircle(arrCircle.Count - 1).ZOrder(0)
End Sub
Private Sub UserControl_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lngDownX = X
lngDownY = Y
End Sub
Thanks for any and all help
Take Care,
Mike