May 102005
 

When you define a form, it’s class is an inherited class (from the one Microsoft defined in their .NET framework). When reading/setting values from components from the form-class you defined, things work like you would expect. But…when you create another class and try to access the components, you will get the error described in the previous post. Why? It does not matter if you define the components on the form as public: you can not access members (variables, subclasses, etc) of inherited classes from another class. That’s by C# design. Oh well, I learned it the hard way.

Please comment if you know a way around it. For now I just pass the values I need to read, but how about writing?

 Posted by at 00:35

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)