Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralCancel Button on collection Editor Pin
arti_ab28-Jan-04 22:50
arti_ab28-Jan-04 22:50 
GeneralRe: Cancel Button on collection Editor Pin
Heath Stewart29-Jan-04 3:07
protectorHeath Stewart29-Jan-04 3:07 
GeneralAssertion in C# app Pin
ip_tgz28-Jan-04 20:23
ip_tgz28-Jan-04 20:23 
GeneralRe: Assertion in C# app Pin
Mazdak28-Jan-04 20:55
Mazdak28-Jan-04 20:55 
GeneralRe: Assertion in C# app Pin
ip_tgz28-Jan-04 22:58
ip_tgz28-Jan-04 22:58 
GeneralRe: Assertion in C# app Pin
Mazdak29-Jan-04 0:02
Mazdak29-Jan-04 0:02 
GeneralRe: Assertion in C# app Pin
Heath Stewart29-Jan-04 2:47
protectorHeath Stewart29-Jan-04 2:47 
Generalcontrolling devices in c# Pin
mahmoud12328-Jan-04 20:11
mahmoud12328-Jan-04 20:11 
GeneralRe: controlling devices in c# Pin
Heath Stewart29-Jan-04 2:42
protectorHeath Stewart29-Jan-04 2:42 
GeneralSecond Time Slow Code Pin
obelisk2928-Jan-04 16:59
obelisk2928-Jan-04 16:59 
GeneralRe: Second Time Slow Code Pin
Le centriste28-Jan-04 18:19
Le centriste28-Jan-04 18:19 
GeneralRe: Second Time Slow Code Pin
obelisk2929-Jan-04 4:44
obelisk2929-Jan-04 4:44 
GeneralRe: Second Time Slow Code Pin
Colin Angus Mackay29-Jan-04 14:48
Colin Angus Mackay29-Jan-04 14:48 
GeneralDataAdapters Pin
MrJJKoolJ28-Jan-04 13:54
MrJJKoolJ28-Jan-04 13:54 
GeneralRe: DataAdapters Pin
Christian Graus28-Jan-04 15:47
protectorChristian Graus28-Jan-04 15:47 
GeneralRe: DataAdapters Pin
MrJJKoolJ28-Jan-04 16:22
MrJJKoolJ28-Jan-04 16:22 
GeneralRe: DataAdapters Pin
Christian Graus28-Jan-04 16:27
protectorChristian Graus28-Jan-04 16:27 
MrJJKoolJ wrote:
So I call the class in my other class to do a function call and once that
function call is done so is the life of the class, correct?


If the class instance is created with a call to 'new' inside that function, yes.

MrJJKoolJ wrote:
Use said to make it static in global in the class then it will persist for the life of the App.

If it's a static variable in any scope then there will only ever be one instance of the class. If it remains the same instance, I'm not sure. On second thoughts, it may not solve anything at all. What needs to happen is simply that the instance of the class is created when your app starts and to be in a scope where it's not destroyed. In a desktop app, that would be the point where the main constructor is called, in an ASP.NET app, application start would be the way to go.


Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralControls using the form designer Pin
James Simpson28-Jan-04 12:12
James Simpson28-Jan-04 12:12 
GeneralRe: Controls using the form designer Pin
James Simpson28-Jan-04 12:28
James Simpson28-Jan-04 12:28 
Generalthreding Pin
nadeen ali28-Jan-04 10:56
nadeen ali28-Jan-04 10:56 
GeneralRe: threding Pin
Heath Stewart28-Jan-04 11:32
protectorHeath Stewart28-Jan-04 11:32 
GeneralProtecting a CD or DVD from copy Pin
antoine@orchus-tech28-Jan-04 10:05
antoine@orchus-tech28-Jan-04 10:05 
GeneralRe: Protecting a CD or DVD from copy Pin
Heath Stewart28-Jan-04 11:24
protectorHeath Stewart28-Jan-04 11:24 
GeneralRe: Protecting a CD or DVD from copy Pin
Kentamanos28-Jan-04 11:28
Kentamanos28-Jan-04 11:28 
QuestionHow to record keyboard Pin
jacal9928-Jan-04 9:25
jacal9928-Jan-04 9:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.