Click here to Skip to main content
16,008,183 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to retrieve data from database Pin
CoderForEver3-Sep-09 21:33
CoderForEver3-Sep-09 21:33 
AnswerRe: How to retrieve data from database Pin
Blikkies3-Sep-09 21:57
professionalBlikkies3-Sep-09 21:57 
QuestionPrint Job Monitor Pin
nisharafic3-Sep-09 20:22
nisharafic3-Sep-09 20:22 
AnswerRe: Print Job Monitor Pin
Dave Kreskowiak4-Sep-09 2:23
mveDave Kreskowiak4-Sep-09 2:23 
QuestionHow to work on multiple forms in C# ? :S Pin
Saad Shuja3-Sep-09 17:57
Saad Shuja3-Sep-09 17:57 
AnswerRe: How to work on multiple forms in C# ? :S Pin
N a v a n e e t h3-Sep-09 20:28
N a v a n e e t h3-Sep-09 20:28 
GeneralRe: How to work on multiple forms in C# ? :S Pin
CoderForEver3-Sep-09 21:44
CoderForEver3-Sep-09 21:44 
GeneralRe: How to work on multiple forms in C# ? :S Pin
OriginalGriff3-Sep-09 22:10
mveOriginalGriff3-Sep-09 22:10 
That really is a bad idea for a number of reasons:
1) Consider the case when you have two forms open - which one can "load" the static variable? How would the accessor know which had loaded it?
2) Exposing variables directly as public fixes the design of your class - because something may use the public variable, you cannot change how your class works without reflecting that in the public variable. If you expose this as a property, you can.
3) Accessing a different forms data is a bad idea from the start, as it fixes the design of one form to teh design of another. This means it is much harder to reuse classes, and thus does nothing to improve reliablity.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: How to work on multiple forms in C# ? :S Pin
DaveyM693-Sep-09 22:13
professionalDaveyM693-Sep-09 22:13 
GeneralRe: How to work on multiple forms in C# ? :S Pin
N a v a n e e t h3-Sep-09 22:18
N a v a n e e t h3-Sep-09 22:18 
QuestionReports... Pin
JollyMansArt3-Sep-09 16:22
JollyMansArt3-Sep-09 16:22 
QuestionCheckBoxCell in DataGridView. Pin
Said Ali Jalali3-Sep-09 9:06
Said Ali Jalali3-Sep-09 9:06 
AnswerRe: CheckBoxCell in DataGridView. Pin
Henry Minute3-Sep-09 9:44
Henry Minute3-Sep-09 9:44 
AnswerRe: CheckBoxCell in DataGridView. Pin
Henry Minute3-Sep-09 9:51
Henry Minute3-Sep-09 9:51 
QuestionBroad casting of message to Client Browser. Pin
prem19423-Sep-09 7:26
prem19423-Sep-09 7:26 
AnswerRe: Broad casting of message to Client Browser. Pin
Ashfield3-Sep-09 8:48
Ashfield3-Sep-09 8:48 
Question[Message Deleted] Pin
mobius1110013-Sep-09 7:24
mobius1110013-Sep-09 7:24 
AnswerRe: Database Responding Pin
Not Active3-Sep-09 7:39
mentorNot Active3-Sep-09 7:39 
GeneralRe: Database Responding Pin
mobius1110013-Sep-09 7:52
mobius1110013-Sep-09 7:52 
GeneralRe: Database Responding Pin
Ashfield3-Sep-09 8:49
Ashfield3-Sep-09 8:49 
QuestionRedirect URL problem Pin
zeeShan anSari3-Sep-09 6:40
zeeShan anSari3-Sep-09 6:40 
AnswerRe: Redirect URL problem Pin
EliottA3-Sep-09 7:16
EliottA3-Sep-09 7:16 
QuestionPlease point me in the right direction... Building reports. Pin
JollyMansArt3-Sep-09 6:28
JollyMansArt3-Sep-09 6:28 
AnswerRe: Please point me in the right direction... Building reports. Pin
Not Active3-Sep-09 7:29
mentorNot Active3-Sep-09 7:29 
GeneralRe: Please point me in the right direction... Building reports. Pin
JollyMansArt3-Sep-09 7:58
JollyMansArt3-Sep-09 7:58 

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.