Public Class Form1
Private Sub PrintDocument1(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
End Sub
End Class
When I try to debug this I get the following error:
Handles clause requires a WithEvents variable defined in the containing type or one of its base types
Anyone know what is wrong? It is my last error. This is written with Visual Studio 2005. Thanks for any help.
Private Sub PrintDocument1(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
End Sub
End Class
When I try to debug this I get the following error:
Handles clause requires a WithEvents variable defined in the containing type or one of its base types
Anyone know what is wrong? It is my last error. This is written with Visual Studio 2005. Thanks for any help.