Hi E J,
From your description, you're wanting to create an ActiveX control via C#
and use it in ASP.NET web page, yes?
As for the question, here are some of my suggestions:
1. Since C# is a dotnet based language, it only support building managed
component or control(.net code). And there is not buildin means for
developing COM or ActiveX COMPONENT directly in .net(C# or VB.NET). I think
we still need to use C++ or VB(I recommend this since it'll save us a lot
of time) to develop COM or ACTIVEX compoents or controls.
2. There is one feature called Interop in .net which help to expose
COM/ActiveX components to dotnet or expose .net components/control to COM
interfaces. So there is means that we develop an .net winform control and
expose it as an ACTIVEX control and use it. The following tech article has
dicussed on this:
#Simple way to expose a .NET WinForm control as an ActiveX control in any
HTML page
http://www.codeproject.com/cs/miscct...wincontrol.asp
3. As #2 has mentioned that we can expose a .net Winform control as activeX
and use in web page. However, the .net has provide another nice feature
----------IE host Winform controls--------- which can directly help use
Winform control in IE. I recommend that you have a look at this means. And
here are some certain
#Using Windows Forms Controls in Internet Explorer
http://samples.gotdotnet.com/quickst...eSourcing.aspx
#Host Secure, Lightweight Client-Side Controls in Microsoft Internet
Explorer
http://msdn.microsoft.com/msdnmag/is...l/default.aspx
#Embedded Windows User Controls into Internet Explorer
http://www.devhood.com/tutorials/tut...l_id=187&print
er=t
http://msdn.microsoft.com/msdnmag/is...h/default.aspx
Hope helps. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx