-
hi,
when i clcik on a form i want a picture to appear (this bit i can do)
but what i want to do is where the mouse clicks i want the picture to appear there, so if the user clicks in the middle of the form then the picture will appear there
Cheers
Merlin ?
-
...off...
on my out the door..hope this gives you enough
once you get your mouse position you can calculate
out your image top and image left to set the
imagebox or picbox to those cordinates..
'find the mouse position anywhere on screen
'other than over the taskbar if visible
'text1 & text2 (2 textboxes)
'click anywhere on form to unload
'Wayne
'http:\\webhome.globalserve.net\enyaw\
Option Explicit
Private Sub Form_Activate()
Me.BorderStyle = 0 'none
Me.WindowState = 2 'max
End Sub
Private Sub Form_Click()
Unload Me
Set Form1 = Nothing
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1.Text = X
Text2.Text = Y
End Sub