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#
  4. AcitveX equivalent in C# ?

AcitveX equivalent in C# ?

Scheduled Pinned Locked Moved C#
csharptutorialc++comsysadmin
5 Posts 2 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.
  • T Offline
    T Offline
    TigerNinja_
    wrote on last edited by
    #1

    Hello, I am trying to figure out a solution for hosting an application in IE, but runs on the client machine (to access printer configuration). I want to use C#, b/c the client has the .NET runtime, otherwise the answer would be, develop an ActiveX control (ATL). Does anyone know how to write a C# app (winform) that is hosted in Internet Explorer? For example, the user browses to http://someserver/somepage.aspx , which then downloads the C# app, and is hosted in IE. The app then has control to access printers on the local machine and local network (the same way windows does) Thanks. ;)


    R.Bischoff  .NET, Kommst du mit?

    H T 2 Replies Last reply
    0
    • T TigerNinja_

      Hello, I am trying to figure out a solution for hosting an application in IE, but runs on the client machine (to access printer configuration). I want to use C#, b/c the client has the .NET runtime, otherwise the answer would be, develop an ActiveX control (ATL). Does anyone know how to write a C# app (winform) that is hosted in Internet Explorer? For example, the user browses to http://someserver/somepage.aspx , which then downloads the C# app, and is hosted in IE. The app then has control to access printers on the local machine and local network (the same way windows does) Thanks. ;)


      R.Bischoff  .NET, Kommst du mit?

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      See an old tutorial of mine, User Control for Windows and the Web[^]. You can find additional information in the .NET Framework SDK by reading Deploying Runtime Applications using Internet Explorer[^], though my tutorial covers most of this.

      Microsoft MVP, Visual C# My Articles

      T 1 Reply Last reply
      0
      • T TigerNinja_

        Hello, I am trying to figure out a solution for hosting an application in IE, but runs on the client machine (to access printer configuration). I want to use C#, b/c the client has the .NET runtime, otherwise the answer would be, develop an ActiveX control (ATL). Does anyone know how to write a C# app (winform) that is hosted in Internet Explorer? For example, the user browses to http://someserver/somepage.aspx , which then downloads the C# app, and is hosted in IE. The app then has control to access printers on the local machine and local network (the same way windows does) Thanks. ;)


        R.Bischoff  .NET, Kommst du mit?

        T Offline
        T Offline
        TigerNinja_
        wrote on last edited by
        #3

        This addresses my question http://www.15seconds.com/issue/030610.htm[^]


        R.Bischoff  .NET, Kommst du mit?

        1 Reply Last reply
        0
        • H Heath Stewart

          See an old tutorial of mine, User Control for Windows and the Web[^]. You can find additional information in the .NET Framework SDK by reading Deploying Runtime Applications using Internet Explorer[^], though my tutorial covers most of this.

          Microsoft MVP, Visual C# My Articles

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

          Thanks for your helpful information. How would you access the PrintDialog control from the control you are hosting in IE ? Thanks.


          R.Bischoff  .NET, Kommst du mit?

          H 1 Reply Last reply
          0
          • T TigerNinja_

            Thanks for your helpful information. How would you access the PrintDialog control from the control you are hosting in IE ? Thanks.


            R.Bischoff  .NET, Kommst du mit?

            H Offline
            H Offline
            Heath Stewart
            wrote on last edited by
            #5

            Same as you would using any other form. It's just a control. If you're trying to access the print dialog for IE, that's not so simple and involves dispatch interfaces and client-side scripting. You must also have the right code access permissions, which are documented in the class documentation for the classes you want to use. My article does discuss code access security a little, so you need to author your control with this in mind. You shouldn't just assume you'll have FullTrust permissions - that's poor design.

            Microsoft MVP, Visual C# My Articles

            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