Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ActiveX control help

Posted on 2002-05-21
6
Medium Priority
?
144 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
[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
  • 3
  • 2
6 Comments
 

Accepted Solution

by:
hashirviqas earned 800 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

705 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