Could someone explain this to me... there is something I don't understand
about control "scope". I have a picturebox on Form1, but If I try to access
the properties of the picturebox (width and height), I get an error
regarding the protection level. This is from within the Form1 class. I have
it's modifiers set as "public"... what gives? If I try and modify the
declaration to make it static, I also get an error. (Can't remember which
one now though). What is the correct way of accessing the control?
Also, how do you access an instance of a form from an object? Does the form
have to be passed to the object? That seems confusing. If I wanted to
write a custom class to handle painting to the picturebox mentioned above,
would the form itself need to be passed as a parameter to the object, or
can't the object just look for the instance of Form1 somehow?
Sorry so dense...
-D