GdImageBox Reference

1. Introduction

The GdImageBox ActiveX control provides an embeddable Image Viewer Control for Windows application developers. Using Visual Basic, Visual FoxPro, MS Access, Delphi, VB.NET, C#, Visual C++, RealBasic (or another ActiveX-aware development tool), developers can build a custom interface including the capability to view Image files.


2. Installing & Redistributing the Control

You must copy the msvbvm60.dll and the gdimagebox.ocx into c:\%Windows%\System32\ . If your application runs under windows 98, NT4, ME or 2000 you must copy too the gdiplus.dll in this same directory.
You must register GdImageBox on your system by running the command: regsvr32 c:\%Windows%\System32\gdimagebox.ocx
You can download the last gdimagebox.ocx edition here.


3. Using the Control

Before using the control within a development environment, make sure the objsafe.tlb file is present into the windows/system32 directory.

This manual assumes that you are familiar with using controls in your development tool.

The GdImageBox Control can be instantiated just like any other control. Before using the GdImageBox ActiveX you need to add a reference to it within your development tool.


To add a reference to the GdImageBox control in Visual Basic 5 or 6:

• Select the “Components...” command on the “Projects” menu, then check the box next to “GdImageBox - Image Viewer ActiveX".
Note: If you can't see the GdImageBox - Image Viewer ActiveX box you can add it by clicking into the "Brows.." button.

To add a reference to the GdImageBox control in Visual Studio .NET:

• Right-click into the Toolbox Items and select "Add/Remove Items" for visual studio 2003 or "Choose Items" for visual studio 2005 and visual studio 2008.
• Choose the COM tab and check the GdImageBox.ImageBox classe.
Note: If you can't see the desired box you can add it by clicking into the "Brows.." button.


Important note:

This control is signed and marked as safe for scripting and safe for initializing.
If you encounter problems to load it within some development environment like Visual Basic 6, you probably need to copy the objsafe.tlb file into the system32 directory.




Click here to access to the last online documentation.
© Copyright 2007 GdPicture All rights reserved.