473,396 Members | 2,029 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.

Explorer preview

Hi,

in Windows Explorer it is possible to display a small preview e.g. of
images, a Word document or an HTML page. How can this preview be added to a
..Net WindowsForm?

Thanks :-)
Bernhard
Nov 21 '05 #1
4 2765
I think you are talking about thumbnails. If so, you can do it like this:

Dim image = New Bitmap("My Image With Extension")
Dim pThumbnail As Image = image.GetThumbnailImage(100, 100, Nothing,
New IntPtr)
e.Graphics.DrawImage( pThumbnail, 10, 10, pThumbnail.Width,
pThumbnail.Height)

The above will create a thumbnail 100 * 100.

I hope this helps.

"Bernhard" wrote:
Hi,

in Windows Explorer it is possible to display a small preview e.g. of
images, a Word document or an HTML page. How can this preview be added to a
..Net WindowsForm?

Thanks :-)
Bernhard

Nov 21 '05 #2
This is already a good help. Forgot to search for 'thumbnail'...

For my application I also would like to have a thumbnail image from an HTML
document. Is there also a possibility?

(If anyone is interested, I have found an article to do this for PDF
document:
http://www.dotnet247.com/247referenc...fthumbnail.asp)

Bernhard
"Crouchie1998" <Cr**********@discussions.microsoft.com> schrieb im
Newsbeitrag news:4A**********************************@microsof t.com...
I think you are talking about thumbnails. If so, you can do it like this:

Dim image = New Bitmap("My Image With Extension")
Dim pThumbnail As Image = image.GetThumbnailImage(100, 100,
Nothing,
New IntPtr)
e.Graphics.DrawImage( pThumbnail, 10, 10, pThumbnail.Width,
pThumbnail.Height)

The above will create a thumbnail 100 * 100.

I hope this helps.

"Bernhard" wrote:
Hi,

in Windows Explorer it is possible to display a small preview e.g. of
images, a Word document or an HTML page. How can this preview be added to
a
..Net WindowsForm?

Thanks :-)
Bernhard

Nov 21 '05 #3
"Bernhard" <mu******@atomstromfrei.de> schrieb:
in Windows Explorer it is possible to display a small preview e.g. of
images, a Word document or an HTML page. How can this preview be added to
a .Net WindowsForm?


Thumbnail Extraction Using the Shell
<URL:http://vbaccelerator.com/article.asp?id=4513>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
Wunderbar - Thanks!!!

Bernhard

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:e5**************@TK2MSFTNGP10.phx.gbl...
"Bernhard" <mu******@atomstromfrei.de> schrieb:
in Windows Explorer it is possible to display a small preview e.g. of
images, a Word document or an HTML page. How can this preview be added to
a .Net WindowsForm?


Thumbnail Extraction Using the Shell
<URL:http://vbaccelerator.com/article.asp?id=4513>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

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

Similar topics

3
by: mr_burns | last post by:
hi, i am using the following code which works well in internet explorer but not in firefox (and perhaps others too): var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false";...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
4
by: zz | last post by:
Sorry for posting this here but unfortunatly I couldn't find any appropriate newsgroup for this and since I've been active here with .net question I figured you guys might be able to help. ...
21
by: Joe Attardi | last post by:
Hey all! I was reading over at the IE Blog the other day http://http://blogs.msdn.com/ie/] and read some interesting, and encouraging news. According to Sunava Dutta, an IE Program Manager,...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
1
by: =?Utf-8?B?aHV3NTM=?= | last post by:
I use vista and internet explorer 7 with a Hp 1210 printer. The system has worked fine, but I have now discovered that I am unable to print from the browser. The page does appear in the preview,...
2
by: Martin Hey | last post by:
hello to all, can somebody tell me how to retrieve the thumbnail-images of files that are shown in explorer? if i want to get these images from image-files i can paint on a smaller dc or call...
1
by: =?Utf-8?B?UGF5cm9sbCBmcnVzdHJhdGVk?= | last post by:
I am on my work computer using Windows XP, I am am using Internet Explorer 7.0 also. I am on a payroll website to do my weekly payroll. I try and view my payroll before processing it so I try and...
15
by: moltendorf | last post by:
I have created a little chat application that seems to work 100% on Mozilla Firefox, Google Chrome, and Safari, (tried it in Opera, and it seems to work, but the cookies are screwing everything up;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.