Solved

ActiveX control help

Posted on 2002-05-21
6
137 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

23 Experts available now in Live!

Get 1:1 Help Now