Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Support for Office resident ActiveX Controls in VS2008?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Siegfried Heintze - 23 Feb 2008 00:50 GMT
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
Nicholas Paldino [.NET/C# MVP] - 23 Feb 2008 04:58 GMT
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/vbasic/aa701259.aspx?wt.slv=ColumnA

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Previously I could write (supported) ActiveX controls for IE only. Has
> this
[quoted text clipped - 6 lines]
> Thanks,
> Siegfried
Siegfried Heintze - 24 Feb 2008 06:04 GMT
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
Willy Denoyette [MVP] - 24 Feb 2008 10:04 GMT
> Please forgive me but I don't see the connection between support for
> ActiveX controls in VB6 and support for ActiveX controls in Microsoft
[quoted text clipped - 3 lines]
> 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.
Siegfried Heintze - 26 Feb 2008 01:51 GMT
So back to my original question: can anyone tell me about writting MSOffice
resident ActiveX controls in C#/VS2008. Is it supported?
Thanks,
Siegfried
Willy Denoyette [MVP] - 26 Feb 2008 12:42 GMT
> 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.
Alvin Bruney [ASP.NET MVP] - 28 Feb 2008 03:02 GMT
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/archive/2006/08/03/106622.aspx

Signature

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
-------------------------------------------------------

>> So back to my original question: can anyone tell me about writting
>> MSOffice
[quoted text clipped - 11 lines]
>
> Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.