CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    CPropertyPage & ActiveX

    Hi!
    Who can explain me, why I can't add ActiveX control in my CPropertyPage control (Wizard mode). Where I add my ActiveX control in one of my pages, this page is not accessible (I mean that this page is ignored when I browse my Wizard pages). ActiveX control is simple BUTTON control.
    Sorry for my bad english

    e-mail me [email protected]


  2. #2
    Join Date
    May 1999
    Location
    Reading, England
    Posts
    28

    Re: CPropertyPage & ActiveX

    The ProperySheet doesn't display a property page if any of the controls on it failed to be created - this is probably the cause.

    Are you creating the control dynamically? or did you insert it on the page using the resource editor?

    I don't know enough about your specific case, but I had the same problem when dynamically creating an ActiveX control on a property page. I inserted a custom control resource on the page and was using this as the site for the control - which gets created at runtime in OnInitdialog().

    The page was dissapearing when it was displayed because control.Create() failed (I didn't specify a license key for it...)

    I suggest you check for any errors when creating the control.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured