Advertisement
ssoni

track_baseline.vb

Apr 8th, 2022
1,461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.57 KB | None | 0 0
  1. Public Class Form1
  2.     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  3.  
  4.     End Sub
  5.  
  6.     Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
  7.         Dim generator As New Random
  8.         Dim myPen As Pen
  9.         Dim myGraphics As Graphics
  10.  
  11.         myPen = New Pen(Brushes.Black, 2)
  12.         myGraphics = Me.CreateGraphics
  13.  
  14.         myGraphics.DrawRectangle(myPen, 100, 50, 600, 70)
  15.         myGraphics.DrawRectangle(myPen, 100, 150, 600, 70)
  16.         myGraphics.DrawLine(myPen, 650, 20, 650, 240)
  17.     End Sub
  18. End Class
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement