Can ActiveX controls be built with C#

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Can ActiveX controls be built with C#

    I would like to build a control that can be deployed from a web site that
    runs in IE. The component will have no user interface. It needs to collect
    information from the local workstation and either drop the information in a
    cookie which will be returned to the server or call the server directly.
    Can this be done? Does anyone know of tutorials or examples that illustrate
    using C# to build a control that will execute from within IE and be callable
    through jscript or vbscript?

    Thanks,

    Leslie
    Leslie Guest

  2. Similar Questions and Discussions

    1. ActiveX controls and IE 6
      I have navigation bars in my website and after IE6 was installed the browser blocks the swap images and waits untill I click the IE security bar to...
    2. How to exchange data between two activex controls
      Hi guys, I have a question about activex controls in director like the message title. Two activex controls in the scene ,the first one (FIR) need...
    3. using activex controls
      Sorry, I posted this here because this code will be included on an asp page. I will try a different forum. IE newsgroup, as it page:...
    4. .NET objects as ActiveX controls?
      Hi, You need to dress your .Net in COM suit. refer to : http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/default.aspx Natty Gur, CTO...
    5. ActiveX Controls
      I have MSN as my internet service provider, and when I go into PHOTOS, I get a Warning Message that says "Your current security settings prohibit...
  3. #2

    Default Re: Can ActiveX controls be built with C#

    ActiveX controls are really a COM thing. They can be built in .NET but it
    doesn't feel entirely natural.
    The more natural alternative is to host windows forms controls within a web
    page, as described here:
    [url]http://SteveOrr.net/articles/WinformControls.aspx[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    [url]http://SteveOrr.net[/url]


    "Leslie" <mason@newsgroup.nospam> wrote in message
    news:4C504AB0-328D-48F6-AF04-41D2AAE03542@microsoft.com...
    >I would like to build a control that can be deployed from a web site that
    > runs in IE. The component will have no user interface. It needs to collect
    > information from the local workstation and either drop the information in
    > a
    > cookie which will be returned to the server or call the server directly.
    > Can this be done? Does anyone know of tutorials or examples that
    > illustrate
    > using C# to build a control that will execute from within IE and be
    > callable
    > through jscript or vbscript?
    >
    > Thanks,
    >
    > Leslie

    Steve C. Orr [MVP, MCSD] Guest

  4. #3

    Default Re: Can ActiveX controls be built with C#

    Steve,

    Thanks, that is just what I was looking for. One other question, you
    mentioned several functions that are prohibited. Is the prohibition absolute
    or can exceptions be made using the Framework Wizard. Specifically, can calls
    to unmanaged code be allowed uisng the Framework Wizard? Is any of the
    security affected by digital signatures?

    Thanks,

    Leslie

    "Steve C. Orr [MVP, MCSD]" wrote:
    > ActiveX controls are really a COM thing. They can be built in .NET but it
    > doesn't feel entirely natural.
    > The more natural alternative is to host windows forms controls within a web
    > page, as described here:
    > [url]http://SteveOrr.net/articles/WinformControls.aspx[/url]
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > [url]http://SteveOrr.net[/url]
    >
    >
    > "Leslie" <mason@newsgroup.nospam> wrote in message
    > news:4C504AB0-328D-48F6-AF04-41D2AAE03542@microsoft.com...
    > >I would like to build a control that can be deployed from a web site that
    > > runs in IE. The component will have no user interface. It needs to collect
    > > information from the local workstation and either drop the information in
    > > a
    > > cookie which will be returned to the server or call the server directly.
    > > Can this be done? Does anyone know of tutorials or examples that
    > > illustrate
    > > using C# to build a control that will execute from within IE and be
    > > callable
    > > through jscript or vbscript?
    > >
    > > Thanks,
    > >
    > > Leslie
    >
    >
    >
    Leslie Guest

  5. #4

    Default Re: Can ActiveX controls be built with C#

    Hi Leslie,

    Thanks for posting!

    "Is the prohibition absolute or can exceptions be made using the Framework
    Wizard. Specifically, can calls to unmanaged code be allowed uisng the
    Framework Wizard?"

    The prohibition is based on the setting of the CAS in the target machine.
    If the code is full trusted in the target machine, the code which even
    contains interop operation will be executed.

    "Is any of the security affected by digital signatures?"
    Yes, you are correct. The signature actually tells the target machine the
    code is trusted and safe. If the target machine trusts the publisher
    company, the code also will be executed.

    Regards,

    Yuan Ren [MSFT]
    Microsoft Online Support

    Yuan Ren[MSFT] Guest

  6. #5

    Default Re: Can ActiveX controls be built with C#

    Steve,

    Will the techniques described in your article work with .NET 1.1 or is 2.0
    required?

    Thanks,

    Leslie

    "Steve C. Orr [MVP, MCSD]" wrote:
    > ActiveX controls are really a COM thing. They can be built in .NET but it
    > doesn't feel entirely natural.
    > The more natural alternative is to host windows forms controls within a web
    > page, as described here:
    > [url]http://SteveOrr.net/articles/WinformControls.aspx[/url]
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > [url]http://SteveOrr.net[/url]
    >
    >
    > "Leslie" <mason@newsgroup.nospam> wrote in message
    > news:4C504AB0-328D-48F6-AF04-41D2AAE03542@microsoft.com...
    > >I would like to build a control that can be deployed from a web site that
    > > runs in IE. The component will have no user interface. It needs to collect
    > > information from the local workstation and either drop the information in
    > > a
    > > cookie which will be returned to the server or call the server directly.
    > > Can this be done? Does anyone know of tutorials or examples that
    > > illustrate
    > > using C# to build a control that will execute from within IE and be
    > > callable
    > > through jscript or vbscript?
    > >
    > > Thanks,
    > >
    > > Leslie
    >
    >
    >
    Leslie Guest

  7. #6

    Default Re: Can ActiveX controls be built with C#

    They will work with .NET 1.1.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    [url]http://SteveOrr.net[/url]


    "Leslie" <mason@newsgroup.nospam> wrote in message
    news:956D84A2-7AF8-4D11-9B31-D7CA8D32C178@microsoft.com...
    > Steve,
    >
    > Will the techniques described in your article work with .NET 1.1 or is 2.0
    > required?
    >
    > Thanks,
    >
    > Leslie
    >
    > "Steve C. Orr [MVP, MCSD]" wrote:
    >
    >> ActiveX controls are really a COM thing. They can be built in .NET but
    >> it
    >> doesn't feel entirely natural.
    >> The more natural alternative is to host windows forms controls within a
    >> web
    >> page, as described here:
    >> [url]http://SteveOrr.net/articles/WinformControls.aspx[/url]
    >>
    >> --
    >> I hope this helps,
    >> Steve C. Orr, MCSD, MVP
    >> [url]http://SteveOrr.net[/url]
    >>
    >>
    >> "Leslie" <mason@newsgroup.nospam> wrote in message
    >> news:4C504AB0-328D-48F6-AF04-41D2AAE03542@microsoft.com...
    >> >I would like to build a control that can be deployed from a web site
    >> >that
    >> > runs in IE. The component will have no user interface. It needs to
    >> > collect
    >> > information from the local workstation and either drop the information
    >> > in
    >> > a
    >> > cookie which will be returned to the server or call the server
    >> > directly.
    >> > Can this be done? Does anyone know of tutorials or examples that
    >> > illustrate
    >> > using C# to build a control that will execute from within IE and be
    >> > callable
    >> > through jscript or vbscript?
    >> >
    >> > Thanks,
    >> >
    >> > Leslie
    >>
    >>
    >>

    Steve C. Orr [MVP, MCSD] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139