Solved

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

Posted on 2011-02-22
4
560 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now