M
Martin Horn
Hi,
I am upgrading a VB6 project that used a stdPicture and passed it's handle
property to a DirectX 7 API function.
VB .net doesn't support the stdPicture and advises using
system.drawing.image as an alternative, but the .net image control doesn't
have a handle property.
I have worked out how to add a stdPicture object to my .net project by
adding a reference to stdOLE, but now I can't work out how to load a picture
into it. In VB6 I used the LoadPicture() function, but this isn't available
in .net.
Can someone either suggest a way to obtain the handle for the .net image or
advise how to load a picture into a stdPicture object.
Thanks,
Martin Horn.
I am upgrading a VB6 project that used a stdPicture and passed it's handle
property to a DirectX 7 API function.
VB .net doesn't support the stdPicture and advises using
system.drawing.image as an alternative, but the .net image control doesn't
have a handle property.
I have worked out how to add a stdPicture object to my .net project by
adding a reference to stdOLE, but now I can't work out how to load a picture
into it. In VB6 I used the LoadPicture() function, but this isn't available
in .net.
Can someone either suggest a way to obtain the handle for the .net image or
advise how to load a picture into a stdPicture object.
Thanks,
Martin Horn.