Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Reference My App Object
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How To Reference My App Object
Miscellaneous
Thread ID:
01026735
Message ID:
01026735
Views:
51
I have posted this twice, with no replies at all. I'm really stuck,
and I can't believe this is not possible to do.

I created a C# class call App. It has a property called oWindows, which
contains a reference to an instance of my window manager class.

The menu has an Open pad, who's code is:
App oApp = new App();
oApp.oWindows.OpenForm("invoice");
The problem is, each subsequent call creates a new instance of the App and
it's window manager class. Therefore, newly opened windows are not added to the
App object's collection, but to a new instance of it.

What I need is a reference the first instance of the application object, 'App'.

I could use some help here.

Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform