OLEunbound on click event

Kinger43

racecar driver
Local time
Today, 13:30
Joined
Aug 17, 2007
Messages
226
I would like to add code to close the form to the on click event of an unbound OLE object. The object is in the form header and just displays a piece of clipart as a logo. I know I can easily make a button to close the form and place it in the form header, I just thought it would be nice to use this logo. I put the code in, but when I click the object it doesn't run, however, if I right click first then left click the code runs and closes the form. Why is this and what do I need to do to make it run when clicked? I tried setting the focus on the object when I move the mouse over it but this gave me an error saying that setfocus was "not available right now." No big deal, just thought it would be cool.
 

Users who are viewing this thread

Back
Top Bottom