Click here to Skip to main content
16,005,169 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to code the connect/disconnect function ? Pin
R24092-Jan-06 22:08
R24092-Jan-06 22:08 
QuestionGUI basics ? Pin
Skoder2-Jan-06 17:26
Skoder2-Jan-06 17:26 
AnswerRe: GUI basics ? Pin
Judah Gabriel Himango2-Jan-06 20:21
sponsorJudah Gabriel Himango2-Jan-06 20:21 
QuestionClose with an X Pin
picasso22-Jan-06 17:25
picasso22-Jan-06 17:25 
AnswerRe: Close with an X Pin
imsathy2-Jan-06 18:29
imsathy2-Jan-06 18:29 
QuestionHow do you access the forms child objects from a different class? Pin
JstDaNuGuy2-Jan-06 15:15
JstDaNuGuy2-Jan-06 15:15 
AnswerRe: How do you access the forms child objects from a different class? Pin
Dave Kreskowiak2-Jan-06 16:56
mveDave Kreskowiak2-Jan-06 16:56 
AnswerRe: How do you access the forms child objects from a different class? Pin
Colin Angus Mackay2-Jan-06 22:01
Colin Angus Mackay2-Jan-06 22:01 
JstDaNuGuy wrote:
if this is the case is it safe for me to change only the objects that i need to access to public, or is that unsafe coding?


You should not make any field in a class public. See this article on Why make fields in a class private, why not make them public?[^]


JstDaNuGuy wrote:
Is there a better way?


Yes. But it depends on what you are trying to do. What is the purpose of the second class? And what is the reason for the interaction?

ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

GeneralRe: How do you access the forms child objects from a different class? Pin
JstDaNuGuy3-Jan-06 2:13
JstDaNuGuy3-Jan-06 2:13 
QuestionHow to run a file with its default program Pin
Sasuko2-Jan-06 14:06
Sasuko2-Jan-06 14:06 
AnswerRe: How to run a file with its default program Pin
Dave Kreskowiak2-Jan-06 15:10
mveDave Kreskowiak2-Jan-06 15:10 
QuestionAutomate Outlook Express Pin
Ista2-Jan-06 13:32
Ista2-Jan-06 13:32 
AnswerRe: Automate Outlook Express Pin
Dave Kreskowiak2-Jan-06 15:07
mveDave Kreskowiak2-Jan-06 15:07 
GeneralRe: Automate Outlook Express Pin
Ista2-Jan-06 17:47
Ista2-Jan-06 17:47 
GeneralRe: Automate Outlook Express Pin
Dave Kreskowiak2-Jan-06 17:56
mveDave Kreskowiak2-Jan-06 17:56 
GeneralRe: Automate Outlook Express Pin
Ista3-Jan-06 2:28
Ista3-Jan-06 2:28 
GeneralRe: Automate Outlook Express Pin
Dave Kreskowiak3-Jan-06 12:38
mveDave Kreskowiak3-Jan-06 12:38 
GeneralRe: Automate Outlook Express Pin
Ista3-Jan-06 15:28
Ista3-Jan-06 15:28 
Questionset a password Textbox to normal Pin
Sasuko2-Jan-06 12:48
Sasuko2-Jan-06 12:48 
AnswerRe: set a password Textbox to normal Pin
Colin Angus Mackay2-Jan-06 12:55
Colin Angus Mackay2-Jan-06 12:55 
GeneralRe: set a password Textbox to normal Pin
Sasuko2-Jan-06 13:16
Sasuko2-Jan-06 13:16 
GeneralRe: set a password Textbox to normal Pin
Colin Angus Mackay2-Jan-06 20:19
Colin Angus Mackay2-Jan-06 20:19 
AnswerRe: set a password Textbox to normal Pin
Judah Gabriel Himango2-Jan-06 12:56
sponsorJudah Gabriel Himango2-Jan-06 12:56 
GeneralRe: set a password Textbox to normal Pin
Sasuko2-Jan-06 13:16
Sasuko2-Jan-06 13:16 
GeneralRe: set a password Textbox to normal Pin
Judah Gabriel Himango2-Jan-06 13:51
sponsorJudah Gabriel Himango2-Jan-06 13:51 

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.