About use ActiveX Control's properties in VB

Posted on 2000-03-09
Medium Priority
Last Modified: 2013-11-20
I Created a ActiveX Control's using MFC ActiveX Control Wizard in VC++. As soon as I set the properties' value use the built control in vb,I found that its self-defined properties' value disapeared at run-time,and when I stop the application in vb's debug mode, their value was recleared. why?
Question by:ycl
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
  • 2
  • 2

Accepted Solution

Norbert earned 200 total points
ID: 2601281
did you implement DoPropExchange ?
void CYourCtrl::DoPropExchange(CPropExchange* pPX) /*\L1\L2 $Workfile: KKOSetCtl.cpp $*/
 * Persistence support
 * This function does the persistent storage of propertys in VB component documents.
 * Returnvalue: void

      ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));

      PX_String(pPX, _T("Property1"), m_Prop1, "");
      PX_String(pPX, _T("Property2"), m_Prop2, "");
      PX_Bool  (pPX, _T("Property3"), m_Prop3, TRUE);

Author Comment

ID: 2602852
Thank you!

Author Comment

ID: 2602985
But another problem is why when changed the value in property page,the values  did not present in VB's build-in Property Window immediately?

Expert Comment

ID: 2603646
there is a function setModifyFlag
and BoundPropertyChanged
did you call them ?

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

771 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