Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

Drawing dot returns null reference...

$
0
0
Code:

Public Class GraphConvert
   
    Dim pen As New Pen(Brushes.Red, 1)
    Dim a As Graphics
   

    Private Sub Graph_Click(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Graph.MouseDown
     
            a.DrawEllipse(pen, e.X, e.Y, 4, 4)
         
    End Sub

   
End Class

When I click on the picture box, I get a "Null reference error..."

Help?

Ryan

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>