Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Net Equivalent to goApp.oObject
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
.Net Equivalent to goApp.oObject
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01253964
Message ID:
01253964
Vues:
70
I am sure this is a dumb question, but I have yet to find an answer. I have been doing a fair amount of R&D in C#, and I cannot solve this problem.

In VFP I can have a public variable to my "main" application goApp for example. I can then add a Property like oSettings, that I can then reference in other parts of the system.

How the heck do I do this in C#?

In my mind ... scary place as it is ...

public static int main()
{
Object oSettings = new SomeClass();
Application.Run(new MainForm());
}

IN my MainForm and any other form or object, I would like to be able to reference oSettings without having to recreate the object each time.

I hope this makes sense ... )-:

TIA,
Mark
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform