By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

ActiveX

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Writing an ActiveX Control in VB.NET
http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp
This will give you the basics.

Nov 21 '05 #2

P: n/a
Thanks, I will give it a go...

"pmclinn" <pe***@mclinn.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
Writing an ActiveX Control in VB.NET
http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp
This will give you the basics.

Nov 21 '05 #3

P: n/a
"Adrian" <Ad****@nospamhotmail.com.uk> schrieb:
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/en-us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJBrowserContro ls.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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

P: n/a
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
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:cs**********@hercules.btinternet.com...
Thanks, I will give it a go...

"pmclinn" <pe***@mclinn.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
Writing an ActiveX Control in VB.NET
http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp
This will give you the basics.


Nov 21 '05 #5

P: n/a
OK, it worked without the Inherits System.Windows.Forms.UserControl,AX...
Thanks

"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:cs**********@titan.btinternet.com...
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
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:cs**********@hercules.btinternet.com...
Thanks, I will give it a go...

"pmclinn" <pe***@mclinn.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
Writing an ActiveX Control in VB.NET
http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp
This will give you the basics.



Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.