Click here to Skip to main content
15,907,395 members
Home / Discussions / C#
   

C#

 
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 
I suggest you keep such data in a Customer object, then pass this object to each and every Form that needs it, with an explicit parameter in the Form's constructor, or through a dedicated public property. That is the OO way of doing things: provide what is needed where and when it is needed.

Making things global isn't a very good idea, as each and every code snippet now can access and modify such data, making the whole app less robust and harder to debug.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Shared Data Pin
Simon_Whale17-Feb-12 6:42
Simon_Whale17-Feb-12 6:42 
Questionhelp rewriting this bit of code Pin
pmcm17-Feb-12 4:32
pmcm17-Feb-12 4:32 
AnswerRe: help rewriting this bit of code Pin
BobJanova17-Feb-12 5:22
BobJanova17-Feb-12 5:22 
GeneralRe: help rewriting this bit of code Pin
pmcm19-Feb-12 21:48
pmcm19-Feb-12 21:48 
QuestionProblem : Use Gujarati Font in TextBox Pin
raks.t.gupta17-Feb-12 3:05
raks.t.gupta17-Feb-12 3:05 
AnswerRe: Problem : Use Gujarati Font in TextBox Pin
BobJanova17-Feb-12 3:13
BobJanova17-Feb-12 3:13 
GeneralRe: Problem : Use Gujarati Font in TextBox Pin
raks.t.gupta17-Feb-12 3:19
raks.t.gupta17-Feb-12 3:19 
AnswerRe: Problem : Use Gujarati Font in TextBox Pin
Bernhard Hiller17-Feb-12 3:31
Bernhard Hiller17-Feb-12 3:31 
QuestionCreating financial statements in C# Pin
dondrey16-Feb-12 23:41
dondrey16-Feb-12 23:41 
AnswerRe: Creating financial statements in C# Pin
DaveAuld17-Feb-12 2:34
professionalDaveAuld17-Feb-12 2:34 
AnswerRe: Creating financial statements in C# Pin
jschell17-Feb-12 7:17
jschell17-Feb-12 7:17 
QuestionHai this is saikumar, i am trainee software developer Pin
saikumarn16-Feb-12 20:35
saikumarn16-Feb-12 20:35 
AnswerRe: Hai this is saikumar, i am trainee software developer Pin
OriginalGriff16-Feb-12 21:11
mveOriginalGriff16-Feb-12 21:11 
GeneralRe: Hai this is saikumar, i am trainee software developer Pin
Dave Kreskowiak17-Feb-12 4:12
mveDave Kreskowiak17-Feb-12 4:12 
AnswerRe: Hai this is saikumar, i am trainee software developer Pin
R. Giskard Reventlov17-Feb-12 12:18
R. Giskard Reventlov17-Feb-12 12:18 
QuestionHi,I download hookManager v2 ,but a error occur in vs2010 Pin
andrewyi16-Feb-12 16:13
andrewyi16-Feb-12 16:13 
AnswerRe: Hi,I download hookManager v2 ,but a error occur in vs2010 Pin
Dave Kreskowiak17-Feb-12 4:04
mveDave Kreskowiak17-Feb-12 4:04 

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.