you can draw an rectangle in the paint event of the form as

vb Code:
  1. Dim p As New Pen(Color.Red, 2)
  2. e.Graphics.DrawRectangle(p, 0, 0, Me.Width - 1, Me.Height - 1)