HowTo : Add preview image in a form in .NET
Article | 41023930 |
Type | HowTo |
Product | Engine |
Version | 5.0.1.1036 |
Date Added | 4/14/2005 |
Submitted by | J.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);