Click to See Complete Forum and Search --> : Adding new events 2 a control!!! ASAP!!!!!
Reddawn
Dec 5th, 2000, 07:29 AM
How can I add an onclick event to a control that does not have it?
aaudette
Dec 6th, 2000, 02:51 PM
Use the mouse up event instead of ONClick
Reddawn
Dec 7th, 2000, 05:12 AM
:(
YoungBuck
Dec 7th, 2000, 05:52 AM
What control are you using?? Does it have an hWnd property??
Reddawn
Dec 7th, 2000, 06:36 AM
gif89a is the control,
available events are:
DragDrop
DragOver
GotFocus
LostFocus
Validate
YoungBuck
Dec 7th, 2000, 07:12 AM
Never used the control, check and see if it has a gif89a.hWnd property, if it does you can use the API to do this, let me know and I'll send some code.
Reddawn
Dec 7th, 2000, 07:17 AM
No hwnd property is available..
Wak
Dec 7th, 2000, 07:44 PM
What does the control do?
If it is simple, why don't you try to make a new Active X control, or see if you can get the code for the existing one?
This is what I normally do.
Wak
Dec 7th, 2000, 07:52 PM
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (x > gif98a.left) and (x < gif98a.left + gif89a.width) and (y > gif98a.top) and (y < gif98a.top + gif98a.height) then msgbox "gif98a has been clicked"
End Sub
This may work.
If it does, ignore my last message.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.