473,566 Members | 3,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2841
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.c om> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.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****@nospamh otmail.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.c om/downloads/details.aspx?Fa milyID=325a8f15-fe7b-4087-aa46-6d3e1b6108e0>

MSDN documentation link:

<URL:http://msdn.microsoft. com/library/en-us/dv_vstechart/html/vjtskMigratingJ avaAppletsToMic rosoftJBrowserC ontrols.asp>

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

<URL:http://support.microso ft.com/?scid=kb;EN-US;311334>
<URL:http://support.microso ft.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.UserContr ol, 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.UserContr ol

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.Tex t = Value

End Set

End Property

End Class
"Adrian" <Ad****@nospamh otmail.com.uk> wrote in message
news:cs******** **@hercules.bti nternet.com...
Thanks, I will give it a go...

"pmclinn" <pe***@mclinn.c om> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.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.UserContr ol,AX...
Thanks

"Adrian" <Ad****@nospamh otmail.com.uk> wrote in message
news:cs******** **@titan.btinte rnet.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.UserContr ol, 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.UserContr ol

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.Tex t = Value

End Set

End Property

End Class
"Adrian" <Ad****@nospamh otmail.com.uk> wrote in message
news:cs******** **@hercules.bti nternet.com...
Thanks, I will give it a go...

"pmclinn" <pe***@mclinn.c om> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.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
4548
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 tried all main combinations of Instancing (Multiuse/Singleuse) and of Threading models (per object/pool). Here's what I found: MultiUse - Thread per...
1
5972
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 a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
2
7558
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 the VB program on that same machine, I can view the ActiveX control fine. He is using Citrix. The same ActiveX controls can be viewed on other...
6
2581
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 it where in the MS-SQL help that deals with the ActiveX supported in SQL. I'm not looking to do web pages ASP, ect. I'm looking to use the ActiveX as...
12
2562
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
7116
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 are running MSIE6.x, woth security settings set to display this control. For the life of me, I cannot figure out how such a simple control can be...
18
8395
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
7
4382
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 ActiveX controls that are to be used by a pda need to be written in the ..net compact framework, or am i missing something else here? i have a HP iPaq...
4
6780
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 access it I have an InvalidActiveXState Exception. I cannot find mutch on the web about this Invalid State of a component except that it is...
6
8031
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 .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply...
0
7673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.