> I'm trying to cache a user object and gain access to it from a mutlipe
> forms.
[quoted text clipped - 9 lines]
>
> Is this possible?
Create a static (Shared in VB.NET) reference to your user object on your
main form. Something like this (C#):
public class MainForm : Form
{
private static UserObject _currentUser;
public static UserObject CurrentUser
{
get { return _currentUser; }
}
}
Somewhere in "MainForm", the user object is initialized and loaded. Now
all other forms can access "MainForm.CurrentUser" to retrieve the one
user object.

Signature
Patrick Steele
http://weblogs.asp.net/psteele
Brian Sokolnicki - 02 Feb 2007 03:15 GMT
Thanks, sounds like it should work.
>> I'm trying to cache a user object and gain access to it from a mutlipe
>> forms.
[quoted text clipped - 29 lines]
> all other forms can access "MainForm.CurrentUser" to retrieve the one
> user object.