Share Pastebin
Guest
Private paste!

Untitled

By: a guest | Apr 30th, 2010 | Syntax: VB.NET | Size: 0.59 KB | Hits: 114 | Expires: Never
Copy text to clipboard
  1. Public Class Form1
  2.  
  3.     Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
  4.  
  5.         Dim Graphics As System.Drawing.Graphics = Me.CreateGraphics()
  6.         Dim rectangle As System.Drawing.Rectangle = New System.Drawing.Rectangle(0, 0, 50, 50)
  7.         Graphics.DrawEllipse(System.Drawing.Pens.Black, rectangle)
  8.         Graphics.DrawRectangle(System.Drawing.Pens.Red, rectangle)
  9.  
  10.     End Sub
  11.  
  12.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  13.  
  14.  
  15.     End Sub
  16. End Class