Variable is not declared error : <p>I'm trying to get visual basic to work through Visual Studio 2013. I began the course a week ago so I'm pretty clueless. All I know is how to create a new project, in general select Form and in declarations select Activated. In the end I end up with the following code : </p>

<pre><code>Public Class Form1

    Private Sub Form1_Activated(sender As Object, e As EventArgs) Handles Me.Activated
        a = 3
        b = 2
        c = a + b
        Print(c)
    End Sub

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub
End Class
</code></pre>

<p>Pretty sure something needs to be deleted. I tried declaring a,b and c with Int but that didn't help and I'm still getting the same error. I tried deleting everything except </p>

<pre><code>Private Sub Form1_Activated(sender As Object, e As EventArgs) Handles Me.Activated
    a = 3
    b = 2
    c = a + b
    Print(c)
End Sub
</code></pre>

<p>but then I get the error Statement is not valid in a namespace.</p>
