Отбой уже сам нашел. Imports System.Drawing.Drawing2D Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadDim windowRegion As RegionDim regionPoints(4) As PointDim regionTypes(4) As ByteregionPoints(0) = New Point(0, 0)regionPoints(1) = New Point(20, 100)regionPoints(2) = New Point(80, 100)regionPoints(3) = New Point(120, 50)regionPoints(4) = New Point(100, 0)Dim Cnt As LongFor Cnt = 0 To 4regionTypes(Cnt) = PathPointType.Line Next CntDim regionPath As New GraphicsPath(regionPoints, regionTypes)Me.Region = New Region(regionPath)End Sub
Ответить
|