Using System icons in Windows Forms

Posted by VIJI Saturday, July 4, 2009

How to use System Icons in Windows Forms?

You need to import System.Drawing.SystemIcons name space in the top of the form

Imports System.Drawing.SystemIcons 'to use System Icons


Public Class Form1

//.....
'Some of the System Icons
Dim ico1 As Icon = SystemIcons.Application
Dim ico2 As Icon = SystemIcons.Asterisk

//......
End Class

0 Responses to Using System icons in Windows Forms

Post a Comment