Graphics Viewer with Drag/Drop and Drag to Open Features
This is a graphics viewer that illustrates the following:
- Use of the OLEDropMode property and the OLEDragDrop Method to permit users to drag image files into a picture box. You can drag more than one file at a time.
- Use of the command function to permit opening files when the user drags a file over an .exe or shortcut to it. The package comes with an .exe, and you put it on your desktop, the application will open and display the graphic you dropped. This same method will work with a text file if you open and input to a text box.
- Print and Print Preview
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.