473,396 Members | 1,917 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,396 software developers and data experts.

Support for Office resident ActiveX Controls in VS2008?

Previously I could write (supported) ActiveX controls for IE only. Has this
changed with VS2008? Does office support ActiveX controls written in VS2008?

What about older versions of office: will they support controls written in
VS2008?

Thanks,
Siegfried
Feb 23 '08 #1
6 1617
Siegfried,

The Microsoft Interop Forms Toolkit, which might give you what you want
(as it supports hosting a .NET control in a VB6 form, and this is done
through ActiveX):

http://msdn2.microsoft.com/en-us/vba...wt.slv=ColumnA
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Siegfried Heintze" <Si**************@discussions.microsoft.comwrote in
message news:FD**********************************@microsof t.com...
Previously I could write (supported) ActiveX controls for IE only. Has
this
changed with VS2008? Does office support ActiveX controls written in
VS2008?

What about older versions of office: will they support controls written in
VS2008?

Thanks,
Siegfried
Feb 23 '08 #2
Please forgive me but I don't see the connection between support for ActiveX
controls in VB6 and support for ActiveX controls in Microsoft Office. Are
you saying that since they are supported in VB6 they are also supported in
Microsoft Office 2007 and earlier?

thanks,
Siegfried
Feb 24 '08 #3
"Siegfried Heintze" <si*******@heintze.comwrote in message
news:PP******************************@comcast.com. ..
Please forgive me but I don't see the connection between support for
ActiveX controls in VB6 and support for ActiveX controls in Microsoft
Office. Are you saying that since they are supported in VB6 they are also
supported in Microsoft Office 2007 and earlier?

thanks,
Siegfried

No, Interop UserControls cannot be hosted in containers other the VB6 Forms.
The only supported host for ".NET user controls" is still IE.

Willy.

Feb 24 '08 #4
So back to my original question: can anyone tell me about writting MSOffice
resident ActiveX controls in C#/VS2008. Is it supported?
Thanks,
Siegfried
Feb 26 '08 #5
"Siegfried Heintze" <Si**************@discussions.microsoft.comwrote in
message news:A3**********************************@microsof t.com...
So back to my original question: can anyone tell me about writting
MSOffice
resident ActiveX controls in C#/VS2008. Is it supported?
Thanks,
Siegfried


This has nothing to do with the Version of VS, you simply can't author
ActiveX controls using any of the managed languages, if you need to author
AX controls ,your only option is to use an unmanaged tool like VB6, C++,
Delphi etc...
You can author *user controls* in C# (and any of the other managed
languages), but these are no ActiveX controls. The only "supported" host for
these type of controls is IE.

Willy.

Feb 26 '08 #6
As Willy says, the only way forward is managed user controls. Interestingly,
the browser will render it as an 'ActiveX' control but it will run in a
managed sandbox which brings other implications such as security yada yada.
See this link for more info
http://msmvps.com/blogs/alvin/archiv...03/106622.aspx

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------

"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"Siegfried Heintze" <Si**************@discussions.microsoft.comwrote in
message news:A3**********************************@microsof t.com...
>So back to my original question: can anyone tell me about writting
MSOffice
resident ActiveX controls in C#/VS2008. Is it supported?
Thanks,
Siegfried

This has nothing to do with the Version of VS, you simply can't author
ActiveX controls using any of the managed languages, if you need to author
AX controls ,your only option is to use an unmanaged tool like VB6, C++,
Delphi etc...
You can author *user controls* in C# (and any of the other managed
languages), but these are no ActiveX controls. The only "supported" host
for these type of controls is IE.

Willy.


Feb 28 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ..... | last post by:
I have an established program that I am changing to allow users to select one of eight languages and have all the label captions change accordingly. I have no problems with English, French, Dutch,...
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...
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...
1
by: AlB | last post by:
Is there a way to gather all applications installed as tray resident and then walk through their handles and issue a gettooltiptext on each one to see what they would display as if a mouse pointer...
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...
2
by: Siegfried Heintze | last post by:
In 2004 (approximately) MS Tech support explained that while there was limited support for native mode Active X controls in a few cases (like IE), ActiveX controls should be all native code...
3
by: vegvegko | last post by:
Hi, Is there any way to build or distribute a C# application with a Powerpoint component, so that the application can display Powerpoint presentations on PCs that do not have Microsoft Office...
1
by: Gen | last post by:
Hello there, I am a leader of a team, developing business application based on the ASP.NET platform. Now we need to add cash register support to the application and it seems to be a bit of a...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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...
0
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...

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.