Click here to Skip to main content
15,909,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: save some xml files in a hidden folder Pin
Ravenet10-Apr-08 0:16
Ravenet10-Apr-08 0:16 
GeneralRe: save some xml files in a hidden folder Pin
Ashfield10-Apr-08 1:54
Ashfield10-Apr-08 1:54 
GeneralRe: save some xml files in a hidden folder Pin
Ahuja.bangalore10-Apr-08 3:58
Ahuja.bangalore10-Apr-08 3:58 
GeneralAuto Resize Pin
half-life9-Apr-08 21:30
half-life9-Apr-08 21:30 
GeneralRe: Auto Resize Pin
Christian Graus9-Apr-08 22:24
protectorChristian Graus9-Apr-08 22:24 
JokeRe: Auto Resize Pin
ChandraRam10-Apr-08 2:09
ChandraRam10-Apr-08 2:09 
Generalmenu control Pin
chithra.r9-Apr-08 21:23
chithra.r9-Apr-08 21:23 
GeneralRe: menu control Pin
John_Adams10-Apr-08 0:24
John_Adams10-Apr-08 0:24 
GeneralAvoid constructor initialization to Designer Pin
binarycat9-Apr-08 21:11
binarycat9-Apr-08 21:11 
GeneralRe: Avoid constructor initialization to Designer Pin
Nouman Bhatti9-Apr-08 21:15
Nouman Bhatti9-Apr-08 21:15 
GeneralRe: Avoid constructor initialization to Designer Pin
binarycat9-Apr-08 21:21
binarycat9-Apr-08 21:21 
GeneralRe: Avoid constructor initialization to Designer Pin
darkelv9-Apr-08 23:21
darkelv9-Apr-08 23:21 
GeneralRe: Avoid constructor initialization to Designer Pin
binarycat9-Apr-08 23:27
binarycat9-Apr-08 23:27 
GeneralFind Odd and Even number Pin
M Riaz Bashir9-Apr-08 20:50
M Riaz Bashir9-Apr-08 20:50 
GeneralRe: Find Odd and Even number Pin
mav.northwind9-Apr-08 20:57
mav.northwind9-Apr-08 20:57 
GeneralRe: Find Odd and Even number Pin
Nouman Bhatti9-Apr-08 21:18
Nouman Bhatti9-Apr-08 21:18 
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 

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.