Product : Engine, Version : 5.0.1.1036, ArticleID : 41023930

HowTo : Add preview image in a form in .NET

Article41023930
TypeHowTo
ProductEngine
Version5.0.1.1036
Date Added4/14/2005
Submitted byJ.S. Hong
Keywords

Subject

Add preview image in a form in .NET

Summary

Add preview image in a form in .NET

Solution

Add a Picture box called "picbox" in your form and add the following code :

stdole.IPictureDisp vdrawFilePicture;
vdrawFilePicture=(stdole.IPictureDisp)vdpro.Utility.GetFilePicture(@"C:\vectordraw1.vdf"); //give the right path of a file
picbox.Image =Image.FromHbitmap((System.IntPtr)vdrawFilePicture.Handle,(System.IntPtr)vdrawFilePicture.hPal);