List Info

Thread: Public Class does not behave as public.




Public Class does not behave as public.
user name
2006-05-30 13:27:11
I have a two projects in a solution. One contains a Class
that inherits a
DataTable. In the second project, I instantiate the class as
Public.



When the form is loaded, I use the instantiated object (a
datatable), format
the table, add records and so on.



The problem I have is that the object exists only when it is
created and
when used in the form load event. Once out of the load
event, the object
does not exist anymore. This doesn't happen if the class
exists inside the
same project, but I need to have it in a separate project.



How can keep this instance in memory during the time the
program in open. In
other word to behave as public?



Thanks,



Mauricio Benavides






===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )