ActiveX

A

Adrian

Hi
What would the equivalent to an ActiveX be in VB.Net?

I need an application that will run as a trusted site and be imbedded in a
browser but have access to a locally installed programs Com objects. It also
need to be complied so I can't use VB or JS script.

Also is there an upgrade for code written in VB6 for a an OCX / ActiveX to
what ever has superseded it or is it start again time!

Thanks
 
H

Herfried K. Wagner [MVP]

Adrian said:
What would the equivalent to an ActiveX be in VB.Net?

I need an application that will run as a trusted site and be imbedded in a
browser but have access to a locally installed programs Com objects. It
also need to be complied so I can't use VB or JS script.

In General, you cannot create ActiveX *controls* with .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;311334>
<URL:http://support.microsoft.com/?scid=kb;EN-US;317346>

Using Windows Forms Controls in Internet Explorer:

<URL:http://msdn.microsoft.com/msdnmag/issues/02/06/rich/rich.asp>
 
A

Adrian

Hi

I can't get the VB.Net example to look like or work the one at
http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp

I cannot get the Inherits System.Windows.Forms.UserControl, AxMycontrol line
to enter with out an error! What have I done wrong?

Thanks (and yes I'm new to .Net!)

Below is what it looks like when I enter the code from the above link!



Namespace ActiveXDotNet

Public Interface AxMyControl

Property UserText() As String

End Interface

End Namespace

Public Class myControl

Inherits System.Windows.Forms.UserControl

Private mStr_UserText As String

Public Property UserText() As String

Get

Return mStr_UserText

End Get

Set(ByVal Value As String)

mStr_UserText = Value

txtUserText.Text = Value

End Set

End Property

End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top