473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ActiveX

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
5 2827
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
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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.