Solved

Create ActiveX Control

Posted on 2000-04-25
2
146 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

691 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