RE: Accessing Classes from Form
- From: Sarika <Sarika@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 May 2005 09:20:04 -0700
Quick obeservation
You are getting the exception because NewMaterial has not been instantiated.
The information that you want to retain is nothing but attributes of a
object of the class. So lets say you have 2 materials - Metal and Plastic.
These will correspond to 2 separate instances of the class Materials.
About retaining the information:
What you could do is create a collection of your objects and while invoking
the AddLayer form fill the controls with the last element of your object
collection. That way the form will display the information abt the last
object that you created.
HTH.
.
- References:
- Accessing Classes from Form
- From: new me via . NET 247
- Accessing Classes from Form
- Prev by Date: Dynamic public property generation
- Next by Date: What does this mean?
- Previous by thread: Accessing Classes from Form
- Next by thread: C# to VB
- Index(es):