Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. inserting ActiveX controll problem

inserting ActiveX controll problem

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpc++visual-studiocom
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _tasleem
    wrote on last edited by
    #1

    hi all i m using visual studio.net for mfc applications. i had inserted the activex conroll named microst forms label 2.0. when i run the application it is not visible. i checked its visible and enable properties which r true. i tried to insert other controlls those are visible but this particular activex controll is not visible it gives no error. ddd

    T M 2 Replies Last reply
    0
    • _ _tasleem

      hi all i m using visual studio.net for mfc applications. i had inserted the activex conroll named microst forms label 2.0. when i run the application it is not visible. i checked its visible and enable properties which r true. i tried to insert other controlls those are visible but this particular activex controll is not visible it gives no error. ddd

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      do you create it dynamically (at runtime) or with the resource dialog designer (placing custom control) ? if doing at runtime, have you correctly called .Create() ?

      M _ 3 Replies Last reply
      0
      • T toxcct

        do you create it dynamically (at runtime) or with the resource dialog designer (placing custom control) ? if doing at runtime, have you correctly called .Create() ?

        M Offline
        M Offline
        Muhammad Azam
        wrote on last edited by
        #3

        Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment" dont forget to include "#include <Afxdisp.h>" hope this work Azam

        T 1 Reply Last reply
        0
        • M Muhammad Azam

          Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment" dont forget to include "#include <Afxdisp.h>" hope this work Azam

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          i'm not the one who asked the question :zzz:

          1 Reply Last reply
          0
          • _ _tasleem

            hi all i m using visual studio.net for mfc applications. i had inserted the activex conroll named microst forms label 2.0. when i run the application it is not visible. i checked its visible and enable properties which r true. i tried to insert other controlls those are visible but this particular activex controll is not visible it gives no error. ddd

            M Offline
            M Offline
            Muhammad Azam
            wrote on last edited by
            #5

            Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment" dont forget to include "#include <Afxdisp.h>" hope this work Azam

            _ 1 Reply Last reply
            0
            • T toxcct

              do you create it dynamically (at runtime) or with the resource dialog designer (placing custom control) ? if doing at runtime, have you correctly called .Create() ?

              _ Offline
              _ Offline
              _tasleem
              wrote on last edited by
              #6

              i had placed drag and drop controll(placing controll). ddd

              1 Reply Last reply
              0
              • M Muhammad Azam

                Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment" dont forget to include "#include <Afxdisp.h>" hope this work Azam

                _ Offline
                _ Offline
                _tasleem
                wrote on last edited by
                #7

                that is called in the initinstace method. when i used other controll they aer display but specifimc microsft form control 2.0 is not displayed. ddd

                1 Reply Last reply
                0
                • T toxcct

                  do you create it dynamically (at runtime) or with the resource dialog designer (placing custom control) ? if doing at runtime, have you correctly called .Create() ?

                  _ Offline
                  _ Offline
                  _tasleem
                  wrote on last edited by
                  #8

                  placing controll). ddd

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups