Mega Code Archive
HatchStyle LightUpwardDiagonal
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms
public class HatchStyleLightUpwardDiagonal
public Shared Sub Main
Application.Run(New Form1)
End Sub
End class
public class Form1
Inherits System.Windows.Forms.Form
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
Dim recDrawingRectangle As Rectangle
recDrawingRectangle = New Rectangle(30, 170, 100, 70)
Dim hb As New HatchBrush(HatchStyle.LightUpwardDiagonal, _
Color.Aquamarine)
e.Graphics.FillRectangle(hb, recDrawingRectangle)
End Sub
Public Sub New()
Me.ClientSize = New System.Drawing.Size(292, 273)
End Sub
End Class