Click here to Skip to main content
15,899,126 members
Home / Discussions / C#
   

C#

 
AnswerRe: Find Odd and Even number Pin
carbon_golem10-Apr-08 3:20
carbon_golem10-Apr-08 3:20 
QuestionHow to modify the aseembly Pin
sujithkumarsl9-Apr-08 17:57
sujithkumarsl9-Apr-08 17:57 
GeneralPrinting word docs using word automation Pin
J. R. Anderson9-Apr-08 17:55
J. R. Anderson9-Apr-08 17:55 
QuestionA problem in multithreading Pin
Nothend9-Apr-08 17:47
Nothend9-Apr-08 17:47 
GeneralRe: A problem in multithreading Pin
Christian Graus11-Apr-08 13:13
protectorChristian Graus11-Apr-08 13:13 
QuestionHelp: Project Management App Pin
demonmaster3k9-Apr-08 16:20
demonmaster3k9-Apr-08 16:20 
QuestionGlobal lists/arrays Pin
Jerry Graham9-Apr-08 12:38
Jerry Graham9-Apr-08 12:38 
GeneralRe: Global lists/arrays Pin
Anthony Mushrow9-Apr-08 13:13
professionalAnthony Mushrow9-Apr-08 13:13 
Well, you could make the list static and public in one of the classes, and then get it by using className.myList but er, that wouldn't be very good really.

Or, you could pass the list to each form via its constructor (so when you create the form you'd go myForm = new Form(myList);) and so each form would have access to the list.

Another route might be to create a singleton class and put the list in that. Then whenever you need to access it, you can just get the instance of the class and get to the list from there.

And a link on singleton classes if you have not encountered them before: clicky[^]

There's probably another way, but i grow weary of typing, and must sleep Sleepy | :zzz:

My current favourite word is: Bacon!
-SK Genius


GeneralRe: Global lists/arrays Pin
PIEBALDconsult9-Apr-08 13:19
mvePIEBALDconsult9-Apr-08 13:19 
GeneralRe: Global lists/arrays Pin
Christian Graus9-Apr-08 14:41
protectorChristian Graus9-Apr-08 14:41 
QuestionUserPaint RichTextBox Pin
xJorDyx9-Apr-08 12:07
xJorDyx9-Apr-08 12:07 
GeneralRe: UserPaint RichTextBox Pin
Christian Graus9-Apr-08 12:22
protectorChristian Graus9-Apr-08 12:22 
GeneralRe: UserPaint RichTextBox Pin
xJorDyx10-Apr-08 4:53
xJorDyx10-Apr-08 4:53 
GeneralCapturing POST data via .NET 2.0 WebBrowser control Pin
Spacix One9-Apr-08 10:41
Spacix One9-Apr-08 10:41 
GeneralWin32 Classes Pin
half-life9-Apr-08 7:56
half-life9-Apr-08 7:56 
GeneralRe: Win32 Classes Pin
Christian Graus9-Apr-08 11:17
protectorChristian Graus9-Apr-08 11:17 
GeneralRe: Win32 Classes Pin
half-life10-Apr-08 8:01
half-life10-Apr-08 8:01 
GeneralRe: Win32 Classes Pin
Dave Kreskowiak9-Apr-08 13:29
mveDave Kreskowiak9-Apr-08 13:29 
GeneralRe: Win32 Classes Pin
half-life10-Apr-08 8:01
half-life10-Apr-08 8:01 
QuestionWhat could cause a Dispatcher Thread to terminate abnormally? Pin
carbon_golem9-Apr-08 7:31
carbon_golem9-Apr-08 7:31 
AnswerRe: What could cause a Dispatcher Thread to terminate abnormally? Pin
carbon_golem9-Apr-08 8:01
carbon_golem9-Apr-08 8:01 
AnswerRe: What could cause a Dispatcher Thread to terminate abnormally? Pin
Roger Alsing9-Apr-08 10:24
Roger Alsing9-Apr-08 10:24 
GeneralRe: What could cause a Dispatcher Thread to terminate abnormally? Pin
carbon_golem10-Apr-08 2:19
carbon_golem10-Apr-08 2:19 
QuestionNHibernate?? Pin
jchigg20009-Apr-08 7:22
jchigg20009-Apr-08 7:22 
AnswerRe: NHibernate?? Pin
led mike9-Apr-08 7:30
led mike9-Apr-08 7:30 

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.