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!

Hidden event of an object

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.
 
It has been awhile but I believe that I used the Inititialize Event of the control to save a reference to the form in a
Dim withevents frm as form
variable and then use the Form_Load event of frm.

- free online Compare/Diff of snippets
 
You can invoke the click event of a control by setting it to true:
Code:
theControl_Click = True


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Thank John and Tracy for your feedback above.

I think the problem I am facing is because the control's event is private and thus making it not visible and that is why I was unable to invoke the event automatically when the form/page loads.

If you go to the following URL - and there you will see the OCX object I am referring to.

The functionality I am trying to accomplish is that currently a user has to manually click on this "Active X" controll button in order to download a DAT and CSV file. I would like to automate this process where this OCX object is invoked automatically at certain time intervals. However, this company who developed this OCX object has made the click event of this OCX file not visible.

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top