Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ActiveX control help

Posted on 2002-05-21
6
Medium Priority
?
145 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 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

772 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