Saturday, July 4, 2009

Using System icons in Windows Forms

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

No comments:

Post a Comment