Public Class ImageConverter
Inherits System.Windows.Forms.AxHost
' converts a IPicture to .Net image format
Public Sub New()
MyBase.New("3AFF760D-9937-4f65-95B7-258AB7CB4E78")
End Sub
Public Shared Function ImageToIPicture(ByVal Image As _
System.Drawing.Image) As stdole.StdPicture
ImageToIPicture = AxHost.GetIPictureFromPicture(Image)
End Function
Public Shared Function IPictureToImage(ByVal Image As
stdole.StdPicture) _ As System.Drawing.Image
IPictureToImage = AxHost.GetPictureFromIPicture(Image)
End Function
End Class
"Metallicore" <an*******@discussions.microsoft.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.