Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Readout Summary-Information Pin
Fitud29-Jul-05 1:49
Fitud29-Jul-05 1:49 
Generalusing Microsoft Project 2000 with C# Pin
ismaill28-Jul-05 21:28
ismaill28-Jul-05 21:28 
GeneralC# events list problem Pin
Sheel Gohe28-Jul-05 21:27
Sheel Gohe28-Jul-05 21:27 
GeneralRe: C# events list problem Pin
lmoelleb28-Jul-05 21:59
lmoelleb28-Jul-05 21:59 
GeneralRe: C# events list problem Pin
Sheel Gohe29-Jul-05 0:36
Sheel Gohe29-Jul-05 0:36 
GeneralRe: C# events list problem Pin
malharone29-Jul-05 9:01
malharone29-Jul-05 9:01 
QuestionSharing a class between 2 forms?? Pin
Dewclaws28-Jul-05 20:38
Dewclaws28-Jul-05 20:38 
AnswerRe: Sharing a class between 2 forms?? Pin
Member 197359428-Jul-05 21:10
Member 197359428-Jul-05 21:10 
Hi,

Implement your class as a Singleton?

So....

==================

using System;

namespace MyApp
{
public class MyClass
{
private static MyClass myClass;

//Make the constructor private instead of public.
private MyClass(){}

//Call this method to return the same instance to all.
public static MyClass GetInstance()
{
if (myClass == null)
{
myClass = new MyClass();
}
return myClass;
}
}
}

==================
GeneralTimer for scheduling Pin
ppp00128-Jul-05 18:57
ppp00128-Jul-05 18:57 
GeneralRe: Timer for scheduling Pin
Christian Graus28-Jul-05 19:01
protectorChristian Graus28-Jul-05 19:01 
GeneralTechnical help Pin
comingsoon28-Jul-05 16:59
comingsoon28-Jul-05 16:59 
GeneralRe: Technical help Pin
Christian Graus28-Jul-05 17:38
protectorChristian Graus28-Jul-05 17:38 
GeneralRe: Technical help Pin
comingsoon28-Jul-05 17:50
comingsoon28-Jul-05 17:50 
GeneralRe: Technical help Pin
Christian Graus28-Jul-05 18:01
protectorChristian Graus28-Jul-05 18:01 
GeneralRe: Technical help Pin
Dave Kreskowiak29-Jul-05 4:26
mveDave Kreskowiak29-Jul-05 4:26 
GeneralRe: Technical help Pin
Christian Graus31-Jul-05 13:18
protectorChristian Graus31-Jul-05 13:18 
GeneralRe: Technical help Pin
leppie28-Jul-05 23:28
leppie28-Jul-05 23:28 
Generalsynchronized arrayList in C# Pin
ppp00128-Jul-05 15:51
ppp00128-Jul-05 15:51 
GeneralRe: synchronized arrayList in C# Pin
Lars Niedziolka28-Jul-05 16:18
Lars Niedziolka28-Jul-05 16:18 
QuestionXmlTextReader - reading from a string? Pin
andrewpritchie28-Jul-05 14:18
andrewpritchie28-Jul-05 14:18 
AnswerRe: XmlTextReader - reading from a string? Pin
Lars Niedziolka28-Jul-05 15:24
Lars Niedziolka28-Jul-05 15:24 
QuestionHow can I... Pin
KORCARI28-Jul-05 12:23
KORCARI28-Jul-05 12:23 
AnswerRe: How can I... Pin
Libor Tinka28-Jul-05 12:39
Libor Tinka28-Jul-05 12:39 
QuestionAlgorithm for creating a list from a hierarchy? Pin
Judah Gabriel Himango28-Jul-05 12:17
sponsorJudah Gabriel Himango28-Jul-05 12:17 
AnswerRe: Algorithm for creating a list from a hierarchy? Pin
Libor Tinka28-Jul-05 12:35
Libor Tinka28-Jul-05 12:35 

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.