Solved

Create ActiveX Control

Posted on 2000-04-25
2
141 Views
Last Modified: 2010-05-02
I created an ActiveX Control included DBgrid and ADO control on this ActiveX Control by VB 6.0. After  compiling the control, I used Visual Interdev 6.0 to add this control to HTML Page.  It worked well; however, the ActiveX control loaded records right away as it was added to HTML form.  I want the ActiveX control to connect to database when the HTML page loads and disconnect when HTLM unload. Which method or properties to set the
connection to database and disconnection for ActiveX Control.  I don't want ActiveX Control get data immediately as it was dragged and droped to the HTML form.
   Thank in advance for your tip.

                        Peter Phan
0
Comment
Question by:phanpt
2 Comments
 
LVL 6

Expert Comment

by:Marine
ID: 2749166
Well why don't you provide certain Methods and properties which you will have to set during Design time of your asp session and then only retrieve information.
0
 

Accepted Solution

by:
IsaacRU earned 100 total points
ID: 2756208
Perhaps you can add code to the Terminate event of the control to disconnect from the database.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now