DrawIcon





VB.Net


    Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
        Dim newIcon As New Icon("favicon.ico")
        rect = New Rectangle(100, 100, 200, 200)
        e.Graphics.DrawIcon(newIcon, rect)
    End Sub