Click here to Skip to main content
15,917,177 members
Home / Discussions / C#
   

C#

 
AnswerRe: why Null value returns & crashes GetManifestResourceStream Pin
JimmeP20-Feb-12 4:03
JimmeP20-Feb-12 4:03 
QuestionC# App to Split Files Pin
stylez50017-Feb-12 9:40
stylez50017-Feb-12 9:40 
AnswerRe: C# App to Split Files Pin
Wes Aday17-Feb-12 10:16
professionalWes Aday17-Feb-12 10:16 
GeneralRe: C# App to Split Files Pin
stylez50017-Feb-12 12:39
stylez50017-Feb-12 12:39 
GeneralRe: C# App to Split Files Pin
Wes Aday17-Feb-12 12:48
professionalWes Aday17-Feb-12 12:48 
GeneralRe: C# App to Split Files Pin
Dave Kreskowiak17-Feb-12 17:07
mveDave Kreskowiak17-Feb-12 17:07 
GeneralRe: C# App to Split Files Pin
Dave Kreskowiak17-Feb-12 17:12
mveDave Kreskowiak17-Feb-12 17:12 
GeneralRe: C# App to Split Files Pin
Pete O'Hanlon18-Feb-12 2:12
mvePete O'Hanlon18-Feb-12 2:12 
AnswerRe: C# App to Split Files Pin
R. Giskard Reventlov17-Feb-12 12:10
R. Giskard Reventlov17-Feb-12 12:10 
GeneralRe: C# App to Split Files Pin
stylez50017-Feb-12 12:38
stylez50017-Feb-12 12:38 
GeneralRe: C# App to Split Files Pin
SilimSayo17-Feb-12 12:43
SilimSayo17-Feb-12 12:43 
GeneralRe: C# App to Split Files Pin
stylez50017-Feb-12 12:55
stylez50017-Feb-12 12:55 
GeneralRe: C# App to Split Files Pin
stylez50017-Feb-12 12:42
stylez50017-Feb-12 12:42 
GeneralRe: C# App to Split Files Pin
Richard Andrew x6417-Feb-12 16:08
professionalRichard Andrew x6417-Feb-12 16:08 
QuestionShared Data Pin
Simon_Whale17-Feb-12 5:41
Simon_Whale17-Feb-12 5:41 
Right now due to increasing our recruitment possibilities of new staff we are moving over to C#

What is the best way that I can go about making a data collection object available to all forms in C#

In Visual Basic we can use a module and put in a friend based variable i.e. friend GlobalData as string. (the string variable is the easiest way I could explain this as an example!) This then makes the variable available to any form / class in the assembly.

Is there a way of doing this in C# or do I have to look at passing the information back and forth between each form?

Many Thanks
Simon
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch


modified 17-Feb-12 11:50am.

AnswerRe: Shared Data Pin
Pete O'Hanlon17-Feb-12 5:54
mvePete O'Hanlon17-Feb-12 5:54 
GeneralRe: Shared Data Pin
Simon_Whale17-Feb-12 6:14
Simon_Whale17-Feb-12 6:14 
AnswerRe: Shared Data Pin
BobJanova17-Feb-12 6:05
BobJanova17-Feb-12 6:05 
GeneralRe: Shared Data Pin
Simon_Whale17-Feb-12 6:10
Simon_Whale17-Feb-12 6:10 
GeneralRe: Shared Data Pin
BillWoodruff18-Feb-12 0:42
professionalBillWoodruff18-Feb-12 0:42 
GeneralRe: Shared Data Pin
Simon_Whale19-Feb-12 5:58
Simon_Whale19-Feb-12 5:58 
AnswerMessage Removed Pin
17-Feb-12 6:15
professionalN_tro_P17-Feb-12 6:15 
GeneralRe: Shared Data Pin
Simon_Whale17-Feb-12 6:27
Simon_Whale17-Feb-12 6:27 
AnswerRe: Shared Data Pin
Luc Pattyn17-Feb-12 6:39
sitebuilderLuc Pattyn17-Feb-12 6:39 
GeneralRe: Shared Data Pin
Simon_Whale17-Feb-12 6:42
Simon_Whale17-Feb-12 6:42 

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.