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
Solved

Create ActiveX Control

Posted on 2000-04-25
2
144 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 122
JSON Response and request in VB6 application 11 568
Add and format columns in vb6 7 63
Macro Excel - Multiple If conditions 2 81
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

792 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