Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Reference My App Object
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How To Reference My App Object
Divers
Thread ID:
01026735
Message ID:
01026735
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform