Solved

ActiveX control help

Posted on 2002-05-21
6
141 Views
Last Modified: 2012-05-04
I have some ActiveX controls, and are having a bit of trouble understanding how they work.

In the InitializeControl procedure, does this only run when a control is placed on a form, does it only run once for each control at design time?

What do I use to set values each time the control is created at runtime?

Can anyone help me with some of these answers?

Jay
0
Comment
Question by:JazC
  • 3
  • 2
6 Comments
 

Accepted Solution

by:
hashirviqas earned 200 total points
ID: 7025765
Hi,

InitializeControl procedure of your activex control is where the eventsink etc. are initialized. Controlinitialize should not need to be called explicitly from the host application, in fact it would not be good practice to have this procedure exposed, since mainly this procedure is to initialize the objecttype of your activex control.

Initializecontrol will be called by the host application by itself. Generally there might be custom initialize methods to an activex control.
0
 

Author Comment

by:JazC
ID: 7025784
If i was wanting to set a value each time the control is viewed/used, where would i place it in the overall code for the control?

Jay
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9006116
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from hashirviqas

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:JazC
ID: 9007878
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9007906
That refers to my post.

"Accept answer from hashirviqas" is my recommendation to the moderators, and the action they will take if you choose not to make your own decision in regard to the outcome of this question.

Paul (pnh73)
EE Cleanup Volunteer
0
 

Author Comment

by:JazC
ID: 9007953
oops
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create Database on Android via Delphi dbExpress 3 129
Delphi 2 77
drawing animated level bar based on numbers 3 112
Controlled Assessment GCSE - desperate help needed 4 112
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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