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. .NET (Core and Framework)
  4. Create ActiveX control with .net 4.0

Create ActiveX control with .net 4.0

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetcomquestion
8 Posts 4 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.
  • A Offline
    A Offline
    awu25
    wrote on last edited by
    #1

    I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.

    N D 2 Replies Last reply
    0
    • A awu25

      I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      awu25 wrote:

      I have also tried to create windows form control for web but again it doesn't work.

      Of course it doesn't work why would you expect it to. ActiveX has been depreciated for several years, its time to update.


      I know the language. I've read a book. - _Madmatt

      A 1 Reply Last reply
      0
      • A awu25

        I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        awu25 wrote:

        ActiveX control for web created in .net 3.5

        No you don't. None of the managed code compilers target building an ActiveX control. You can build something that exposes interfaces through COM, but it's not an "ActiveX control".

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        1 Reply Last reply
        0
        • N Not Active

          awu25 wrote:

          I have also tried to create windows form control for web but again it doesn't work.

          Of course it doesn't work why would you expect it to. ActiveX has been depreciated for several years, its time to update.


          I know the language. I've read a book. - _Madmatt

          A Offline
          A Offline
          awu25
          wrote on last edited by
          #4

          I have also tried to use Windows Form control but still doesn't work. If both of them are obsolete what should I use to get client printer information through browser in an intranet environment?

          N P 2 Replies Last reply
          0
          • A awu25

            I have also tried to use Windows Form control but still doesn't work. If both of them are obsolete what should I use to get client printer information through browser in an intranet environment?

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Windows controls are not obsolete. You can't use Windows controls in a Web environment :rolleyes:


            I know the language. I've read a book. - _Madmatt

            A 1 Reply Last reply
            0
            • A awu25

              I have also tried to use Windows Form control but still doesn't work. If both of them are obsolete what should I use to get client printer information through browser in an intranet environment?

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              They aren't really obsolete - they've been deprecated, but you can still write ActiveX controls in C++. Can you say "Ouch"...

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              1 Reply Last reply
              0
              • N Not Active

                Windows controls are not obsolete. You can't use Windows controls in a Web environment :rolleyes:


                I know the language. I've read a book. - _Madmatt

                A Offline
                A Offline
                awu25
                wrote on last edited by
                #7

                I meant windows form control and it actually does work with web environment. I can get it to work with .net framework 3.5 or earlier, but not .net framework 4, not even a simple hello world control. What are my choices? I am willing to try anything.

                P 1 Reply Last reply
                0
                • A awu25

                  I meant windows form control and it actually does work with web environment. I can get it to work with .net framework 3.5 or earlier, but not .net framework 4, not even a simple hello world control. What are my choices? I am willing to try anything.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  You shouldn't actually run a .NET windows control in a web page - this would place a requirement on the end user having the correct version of .NET installed.

                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                  My blog | My articles | MoXAML PowerToys | Onyx

                  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