How do I use the Graphics.Drawline function in the middle of another function on my form.

What I want to do is just draw an X across part of my form, but where, and what size changes.

I think my problem is in creating the graphics object. What I did was create a global graphics variable called '_graphics' and in the myBase.Paint event I set that global variable to the forms graphics object:
VB Code:
  1. Private Sub Panel_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint          
  2.      _graphics = e.Graphics      
  3. End Sub
Then in my function I create a pen, and try to draw my two lines:
VB Code:
  1. Private Sub DrawBlock(ByVal Cir As Circuit)
  2.           Dim pen As Pen = New Pen(Color.Black, 1)
  3.          
  4.           Dim _Left As Integer = Cir.Left
  5.           Dim _Right As Integer = Cir.Left + Cir.Width
  6.           Dim _Top As Integer = Cir.Top
  7.           Dim _Bottom As Integer = Cir.Top + Cir.Height  
  8.  
  9.           _graphics.DrawLine(pen, _Left, _Top, _Right, _Bottom)
  10.           _graphics.DrawLine(pen, _Left, _Bottom, _Right, _Top)
  11. End Sub
When it gets to the first _graphics.DrawLine(...) I get an error stating "Invalid Paramater Used".

Any Ideas? I'm likely just using the graphics class wrong.