Torna al Thread

Public Sub DrawLinePoint(sender As System.Object, ByVal e As PaintEventArgs) Handles MyBase.Paint ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create points that define line. Dim point1 As New Point(100, 100) Dim point2 As New Point(500, 100) ' Draw line to screen. e.Graphics.DrawLine(blackPen, point1, point2) End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5