Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2004, 10:20 PM
Authorized User
 
Join Date: Jan 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Preview a picture in the open file dialog?

Hello there,
            I was wondering if its possible to preview a picture before i can insert into a picture box. My idea is very similar as to when you try to insert a picture in microsoft word, i.e. you can have a preview of the picture you want to insert before actually picking that picture.
I have already set up an open file dialog that allows me to pick the picture I want to by simply looking at the name. HOwever, I am not sure how to preview the picture in the open file dialog

Thanks,
Dinesh

 
Old January 19th, 2004, 11:21 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

I do not know of a way to do this with the default file dialog box, but, you could create your own, file open dialog box, that displays images (thumbnails) for the files. This may be slow, especially if the files are large.

Depending on how important this is, and how often a user uses the image open functionality, you may want to look into 3rd party tools, that can load thumbnails quickly.

Some graphics programs (like ACDSee) create a file that stores the thumbnails once they have been created. If images are relatively static, this saves time on the loading of the thumbnails, because the resize only has to be performed once per image. It still uses the files in a directory to determine what to display, and if the thumbnail exists and (I would guess) the modify dates match, then the existing thumbnail is used. If the modify dates don't match or there is a new image, then a new thumbnail is created. ACDSee, uses one file per directory for this (and I assume tracks the modify date for each in this file, as well as the image).

I believe that some file formats also have thumbnail data in them, but I could be wrong on this.

In short, this is a complex feature/function, that may need some decisions on your part based on the usage of your application.


John R Lick
[email protected]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open File Dialog Issue rodmcleay VS.NET 2002/2003 0 March 7th, 2007 12:10 PM
Open File Dialog In Excel XP GT500Shlby Excel VBA 1 June 6th, 2005 09:19 AM
open file dialog box mh VB.NET 7 April 11th, 2005 10:15 AM
Open File Dialog Box KennethMungwira VB.NET 3 August 3rd, 2003 09:44 PM
Open File Dialog Box KennethMungwira VB.NET 2 June 27th, 2003 04:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.