Solved

Still trying to load a 48x48x32 icon into a VB.NET Picturebox

Posted on 2011-02-22
4
570 Views
Last Modified: 2012-05-11
The collection of icons found in shell.dll in the System32 subdirectory are in a 48 x 48 pixel format.

If you tried loading one into a VB.NET Picturebox on a Form using the Property Sheet, the result looks like an under-nourished ant on the screen.

Does anyone know how to display one of these high res icons on a form?

Thanks.
0
Comment
Question by:gbmcneil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
quizwedge earned 500 total points
ID: 34954386
An icon is never going to be high resolution, the way a jpeg picture would be, but I think the following may do what you want: http://stackoverflow.com/questions/914323/display-icon-on-form-in-vb-net
0
 
LVL 29

Expert Comment

by:nffvrxqgrcfqvvc
ID: 34954477
You want to draw the icon onto surface then you can draw it into the PictureBox any size you want... The default when you use the property sheet probrably automatically loads the icon using the default system small icon semantics for that operating system.
0
 

Author Comment

by:gbmcneil
ID: 34954752
You are correct quizwedge. I discovered this web page as well and it worked.

The only problem I am having right now is increasing the size of the icon image displayed, without sacreficing too much in the way of resoluton. I have brought this issue up as a separate question for The Experts.
0
 

Author Closing Comment

by:gbmcneil
ID: 34954757
Thanks agan.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question