Solved

ActiveX control help

Posted on 2002-05-21
6
138 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now