Microsoft KB Archive/304562

= Visual Studio 2005 and Visual Studio .NET do not provide an OLE container control for Windows Forms =

Article ID: 304562

Article Last Modified on 3/2/2007

-

APPLIES TO


 * Microsoft Visual Basic 2005
 * Microsoft Visual Basic .NET 2003 Standard Edition
 * Microsoft Visual Basic .NET 2002 Standard Edition
 * Microsoft Visual C# 2005
 * Microsoft Visual C# .NET 2003 Standard Edition
 * Microsoft Visual C# .NET 2002 Standard Edition
 * Microsoft Visual J# 2005 Express Edition
 * Microsoft Visual J# .NET 2003 Standard Edition
 * Microsoft Visual J# .NET 2003 Standard Edition

-



This article was previously published under Q304562



SUMMARY
Microsoft Visual Basic versions 6.0 and 5.0 provide an OLE container control for embedding OLE objects directly on forms. The OLE container control provides a means for embedding OLE objects such as Microsoft Excel workbooks, Microsoft PowerPoint presentations, and Microsoft Word documents.

A similar OLE container control is not available for Windows Forms when you use the following:
 * Microsoft Visual Basic 2005
 * Microsoft Visual Basic .NET 2003
 * Microsoft Visual Basic .NET 2002
 * Microsoft Visual C# 2005
 * Microsoft Visual C# .NET 2003
 * Microsoft Visual C# .NET 2002
 * Microsoft Visual J# 2005
 * Microsoft Visual J# .NET 2003
 * Microsoft Visual J# .NET 2002



MORE INFORMATION
You can achieve similar functionality by using the Microsoft WebBrowser control to host the document if the document uses ActiveX. Excel, PowerPoint, and Word all support ActiveX. Therefore, documents from those sources may be displayed by using the WebBrowser control.

