Popup a Photo in a New Window - December 2011
This tip-of-the-month demonstrates how to display a photo in a popup window. A thumbnail is displayed in the main window. When the thumbnail is clicked an enlarged photo appears in a popup window. Click here to run the demo.
The Asp.Net, VB.Net, VS/2008 project PopupPhoto is documented using screen captures:
Click either photo to display an enlargement in a popup window.
The enlarged photo is displayed in a separate window. Click the photo or the 'Close' button to close the window.
Get Image Size - The popup window size is determined by the width and height of the photo. Class cImageSize, method GetImageSize returns properties: lSize, iWidth and iHeight. Review the source code for details.
Download the source code by clicking on the zipped file name. Click here to run the demo application.
Download - Source Zipped File Size VS/2008 VB.Net, ASP.Net Solution PhotoPopup.zip 282K
Previous Tip Tip Index Next Tip