There is nothing wrong with that line, but "End Class" should be at the bottom.

vb.net Code:
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         'Code
  5.     End Sub
  6.  
  7. End Class