Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

11 Experts available now in Live!

Get 1:1 Help Now