HighTechTalks DotNet Forums  

ActiveX Controls in .NET

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss ActiveX Controls in .NET in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default ActiveX Controls in .NET - 10-19-2003 , 01:38 AM






It'll probably seem like a really dumb question but I was
wanting to know whether you can develop ActiveX controls
in .NET using C# or whether its been replaced with
something else like using windows forms components in web
forms pages. Basically just wanting to know if there is
any client-side component development support in .NET or
has it all been scrapped.

Reply With Quote
  #2  
Old   
Eric Cadwell
 
Posts: n/a

Default Re: ActiveX Controls in .NET - 10-20-2003 , 01:59 PM






I'll give this one a shot...

You can create UserControls in C#. They are not ActiveX controls and are not
COM-based. They can in turn be used in Windows Forms, Web Forms, or by COM
interop via tlbexp.exe.

HTH,
Eric Cadwell
http://www.origincontrols.com



Reply With Quote
  #3  
Old   
John Carnahan
 
Posts: n/a

Default Re: ActiveX Controls in .NET - 10-20-2003 , 07:26 PM



Eric,
Is there a .Net approach like Java Applets? I think Active X was MS
solution, but can you get to a complex WEB applet thingy using User
Controls?
John

"Eric Cadwell" <ecadwell (AT) ns (DOT) insight.com> wrote

Quote:
I'll give this one a shot...

You can create UserControls in C#. They are not ActiveX controls and are
not
COM-based. They can in turn be used in Windows Forms, Web Forms, or by COM
interop via tlbexp.exe.

HTH,
Eric Cadwell
http://www.origincontrols.com





Reply With Quote
  #4  
Old   
Eric Cadwell
 
Posts: n/a

Default Re: ActiveX Controls in .NET - 10-20-2003 , 08:13 PM



I'm primarily a Windows Forms kind of guy, so I'll give you the biased
answer...

Look up articles on Smart Client, Auto Deploy, or No Touch Deployment. This
is the equivalent of a rich UI deployed via the web. It runs in a sandbox,
but the permissions are configurable. IMHO this is without a doubt the
coolest feature of .NET and Microsoft is still showing a strong commitment
to this technology with more advancements in the 1.1 framework.

http://msdn.microsoft.com/library/de...TFramework.asp

Otherwise, I commonly write my UI logic in large aggregate UserControls.
This could also be likened to an applet, but mine are designed to run in
WinForms and not on the web. I see no reason that a similar approach can't
used in the browser. You would want to inherit from
System.Web.UI.WebControls.WebControl or System.Web.UI.UserControl instead of
System.Windows.Forms.UserControl.

http://msdn.microsoft.com/library/de...ercontrols.asp
http://docs.aspng.com/quickstart/asp...bpagelets.aspx

Whatever way you go, the framework would have to be installed on the client
machine.

HTH;
Eric Cadwell
http://www.origincontrols.com







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.