Develop an Activex control in VB.Net

  • Thread starter Thread starter Harley
  • Start date Start date
H

Harley

I need to develop a module with an encapsulated functionality, to be embeded
in a web page.
In the pre-dotnet world, my choice would have been an activex control. but
now that I'm using Visual Studio 2003, I can't find a project type to build
an ActiveX control.
Anyone can help with an idea? sample code would be great!
 
* "Harley said:
I need to develop a module with an encapsulated functionality, to be embeded
in a web page.
In the pre-dotnet world, my choice would have been an activex control. but
now that I'm using Visual Studio 2003, I can't find a project type to build
an ActiveX control.
Anyone can help with an idea? sample code would be great!

You cannot build ActiveX controls (UI controls) using .NET.

J# Browser Controls provide developers with a way to migrate their existing
Java applet source code to run within the context of the .NET Framework

<URL:http://www.microsoft.com/downloads/details.aspx?FamilyID=325a8f15-fe7b-4087-aa46-6d3e1b6108e0>

MSDN documentation link:

<URL:http://msdn.microsoft.com/library/e...ingJavaAppletsToMicrosoftJBrowserControls.asp>

For .NET 1.0, controls as ActiveX are only supported hosted in MS IE 5+6:

<URL:http://support.microsoft.com/?scid=kb;en-us;Q311334>
<URL:http://support.microsoft.com/?scid=kb;en-us;q317346>

Using Windows Forms Controls in Internet Explorer:

<URL:http://msdn.microsoft.com/msdnmag/issues/02/06/rich/rich.asp>
 
You might want to look at ASP.NET User Controls. They're really simple to
make, but the downside is they can't be shared across applications (I think
there may be a hack to do it, but I don't use User Controls myself)

If you need a more robust solution, then use ASP.NET Server Controls. You
have more work to do, and you don't get a pretty designer to work with, but
they are more powerful.

MSDN has a lot of articles on Server Controls and User Controls. Their 101
sample apps has some samples also.
 
Back
Top