Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX control click event not visible

Status
Not open for further replies.

tektipuser2005

Technical User
Nov 26, 2005
13
US
Hi All,

I have hidden event of an object, how do I invoke a private event of an OCX control?

Basically, I have an OCX control click event not visible and I would like to invoke the event automatically when the form/page loads?

Any ideas or tips on resolving this issue would be much appreciated!

Thank you.
 
How can you have an event not visible? An event is an action. Do you mean the control is not visible? An event is just a callable routine, so call it when the form loads. You can call the event whether the control is visible or not. However, if it is not visible why do you have it? Does it become visible at some point.

Hard to know what to say as you do not describe the situation. In any case, an event is neithe rvisible, nor not visible. It is an event, and can be called.

Gerry
 
You will be able to get all the events of an activex if you go to the code window and choose the activex from objects combo(left) and events/properties from right combo.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Do not cut down the tree that gives you shade.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top