/*
1. Create wrapper asseblies using aximp.exe, ie.
aximp.exe c:\windows\system32\WEBVW.dll
2. You will get two files AxWEBVWLib.dll and AxWEBVWLib.dll, add reference to your project to AxWEBVWLib.dl file
3. Use your activex like specified bellow
*/
// Create new wrapper instance
AxWEBVWLib.AxThumbCtl axctl = new AxWEBVWLib.AxThumbCtl();
// Add object to specific window (control)
mypanel.Controls.Add(axctl);
// Set dock style
axctl.Dock = DockStyle.Fill;
// use OCX control methods (here we create thumbnail for our jpg file)
axctl.displayFile(@"c:\temp\graphics.jpg");
|