473,396 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

thumbnails view

Ada
if you go to Windows Explorer and select a directory that contained a bunch of images, then go to VIEW > THUMBNAILS
you will see a thumbnails of all the images in the folder.

to familiarize myself with C# code, i want to do something like that.
i was thinking of using LISTVIEW and IMAGELIST controls.
i've been testing various codes but cannot get the image to display.

just wondering if LISTVIEW and IMAGELIST controls are the best candidate for this job.
or, is there another control(s) can do it better/easier?

any sample codes or suggestions would be appreciated.

TIA
Nov 16 '05 #1
2 2381
Ada,

I think that the ListView control might be the best selection for you,
since that is what is used in explorer. However, the .NET version probably
doesn't expose all the functionality that is currently available in the
listview control, so you will have to resort to sending windows messages for
the appropriate actions you want to take.

Using Spy++, it looks like all it is doing is setting the imagelist to a
normal imagelist (not icons), and then setting the border selection property
to highlight the borders. This might be all you have to do as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ada" <Ad*@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
if you go to Windows Explorer and select a directory that contained a bunch of images, then go to VIEW > THUMBNAILS you will see a thumbnails of all the images in the folder.

to familiarize myself with C# code, i want to do something like that.
i was thinking of using LISTVIEW and IMAGELIST controls.
i've been testing various codes but cannot get the image to display.

just wondering if LISTVIEW and IMAGELIST controls are the best candidate for this job. or, is there another control(s) can do it better/easier?

any sample codes or suggestions would be appreciated.

TIA

Nov 16 '05 #2
Ada,

I think that the ListView control might be the best selection for you,
since that is what is used in explorer. However, the .NET version probably
doesn't expose all the functionality that is currently available in the
listview control, so you will have to resort to sending windows messages for
the appropriate actions you want to take.

Using Spy++, it looks like all it is doing is setting the imagelist to a
normal imagelist (not icons), and then setting the border selection property
to highlight the borders. This might be all you have to do as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ada" <Ad*@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
if you go to Windows Explorer and select a directory that contained a bunch of images, then go to VIEW > THUMBNAILS you will see a thumbnails of all the images in the folder.

to familiarize myself with C# code, i want to do something like that.
i was thinking of using LISTVIEW and IMAGELIST controls.
i've been testing various codes but cannot get the image to display.

just wondering if LISTVIEW and IMAGELIST controls are the best candidate for this job. or, is there another control(s) can do it better/easier?

any sample codes or suggestions would be appreciated.

TIA

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: c d saunter | last post by:
Greetings All, In Widows Explorer there is a thumbnail view, where you see images as thumbnails. Applications such as MS Office and OpenOffice, when installed, cause their respective filetypes to...
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to...
2
by: anonymous | last post by:
the dotnet OpenFileDialog brings up a window that looks similar to a File Explorer window, and indeed depending on some user settings may list files in a details view, thumbnails view etc. Is...
3
by: Vagabond Software | last post by:
I'm trying to display thumbnail images in a Listview that look more like the Windows thumbnail view. Everything is working pretty good, but my thumbnails are decidedly not like the Windows...
6
by: mike w. | last post by:
I want to create an application using VB.Net to have something like windows explorer to view thumbnails of image files in the directories. Is there a control or soemthing to do this? thanks ...
8
by: Paul | last post by:
Hi, I'm struggling to create an app that contains a window showing thumbnails of all. jpg files within a specified directory. I've been a couple of examples of how to iterate through a directory...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
4
by: Barely Audible | last post by:
Guys I was wondering if it was possible to have a js file that, when the page loaded, it automatically generated a a set of thumbnails from directory of the page on the web server? Or would...
3
by: Tim Kelley | last post by:
Is there a way (command line switch) to open Windows Explorer and set the view to Thumbnails? Thanks, Tim
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.