In my Module1.vb code, if I assign a Watch to Form1.Width, I get the error "Reference to a non-shared member requires an object reference", and if I assign a Watch to Form1, I get the error "Form1 is a type and cannot be used as an expression"
However, Debug.Print Form1.Width
works.
I read here (https://msdn.microsoft.com/en-us/library/aa262343(v=vs.60).aspx) that
Visual Basic creates a hidden global object variable for every form class. It's as if Visual Basic had added the following declaration to your project:
Public Form1 As New Form1
Is Visual Studio Watch insisting on accessing Form1 as a Class rather than as an instance (as in Debug.Pring)?
Am I missing something obvious?