Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Microsoft.VisualBasic.Compatibility assembly in C#?

Status
Not open for further replies.

cjtaylor

Programmer
Aug 12, 2001
69
0
0
US
Is it possible to use Microsoft.VisualBasic.Compatibility.dll assembly in a c# project? I need to use VB6.IPictureDispToImage function or a c# equivalent but can seem to get anything to work for me. Visual Studio doesn't recognize the using Microsoft.VisualBasic.Compatibility in my C# project, but it does in Visual Basic.NET.

Any help appreciated.
Thanks
Chris Taylor
 
You need to set a reference to the assembly:
Microsoft VisualBasic .NET Compatibility Runtime

Then you can just do Microsoft.VisualBasic.Compatibility... in your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top