Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

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

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
gbmcneil
Asked:
gbmcneil
  • 2
1 Solution
 
quizwedgeCommented:
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
 
nffvrxqgrcfqvvcCommented:
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
 
gbmcneilAuthor Commented:
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
 
gbmcneilAuthor Commented:
Thanks agan.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now