Public Class ImageConverter
Inherits System.Windows. Forms.AxHost
' converts a IPicture to .Net image format
Public Sub New()
MyBase.New("3AF F760D-9937-4f65-95B7-258AB7CB4E78")
End Sub
Public Shared Function ImageToIPicture (ByVal Image As _
System.Drawing. Image) As stdole.StdPictu re
ImageToIPicture = AxHost.GetIPict ureFromPicture( Image)
End Function
Public Shared Function IPictureToImage (ByVal Image As
stdole.StdPictu re) _ As System.Drawing. Image
IPictureToImage = AxHost.GetPictu reFromIPicture( Image)
End Function
End Class
"Metallicor e" <an*******@disc ussions.microso ft.com> wrote in message news:<0a******* *************** ******@phx.gbl> ...
Does anyone know how to load a vb6 stdPicture (in an
existing DLL) from vb.net?
System.Drawing. Image is not the same thing as stdPicture
in vb6.