Icon Class (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Classes
Difficulty:
Beginning
Author:
Marc Cramer

Version Compatibility: Visual Basic.NET

More information:
Class to get default system icon for a file type and also to convert an image into an icon that can be used.

Example use would be

Dim Test As New clsIcon()
StatusBar.Panels(1).Icon = Test.GetDefaultIcon(".vb", clsIcon.IconSize.SmallIcon)

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download clsicon.zip