Click here to Skip to main content
15,887,875 members
Home / Discussions / C#
   

C#

 
AnswerRe: Set Control Values on Form from other class Pin
I Believe In GOD18-Jun-09 23:54
I Believe In GOD18-Jun-09 23:54 
GeneralRe: Set Control Values on Form from other class Pin
Christian Graus19-Jun-09 0:00
protectorChristian Graus19-Jun-09 0:00 
QuestionRe: Set Control Values on Form from other class Pin
Programm3r19-Jun-09 0:02
Programm3r19-Jun-09 0:02 
AnswerRe: Set Control Values on Form from other class Pin
DaveyM6919-Jun-09 0:28
professionalDaveyM6919-Jun-09 0:28 
QuestionRe: Set Control Values on Form from other class Pin
Programm3r19-Jun-09 1:21
Programm3r19-Jun-09 1:21 
AnswerRe: Set Control Values on Form from other class Pin
DaveyM6919-Jun-09 1:54
professionalDaveyM6919-Jun-09 1:54 
GeneralRe: Set Control Values on Form from other class Pin
Programm3r19-Jun-09 1:56
Programm3r19-Jun-09 1:56 
AnswerRe: Set Control Values on Form from other class Pin
Rob Philpott19-Jun-09 1:44
Rob Philpott19-Jun-09 1:44 
Just a quick point on this, setting a label on a form from a seperate class is probably not a particularly good idea. By doing that you've tightly coupled the class and form together which is bad for reuse. At the extreme you might as well put the calculation stuff in the form itself, as potentially the calc class can no longer operate without the form.

As Christian suggests, by exposing an event on your calculation class your form can get updated, but your class could be used elsewhere without that form.

Regards,
Rob Philpott.

GeneralRe: Set Control Values on Form from other class Pin
Programm3r19-Jun-09 1:59
Programm3r19-Jun-09 1:59 
QuestionVisual Studio 2005 method error Pin
Jem_Jumper18-Jun-09 23:29
Jem_Jumper18-Jun-09 23:29 
AnswerRe: Visual Studio 2005 method error Pin
dan!sh 18-Jun-09 23:35
professional dan!sh 18-Jun-09 23:35 
QuestionHow to run .NET application in Fedora 6(Linux) Pin
Member 305788718-Jun-09 23:12
Member 305788718-Jun-09 23:12 
AnswerRe: How to run .NET application in Fedora 6(Linux) Pin
Rob Philpott18-Jun-09 23:14
Rob Philpott18-Jun-09 23:14 
AnswerRe: How to run .NET application in Fedora 6(Linux) Pin
Simon P Stevens18-Jun-09 23:15
Simon P Stevens18-Jun-09 23:15 
QuestionSoftware Process Change Best Practices Pin
DeveloperZero18-Jun-09 22:49
DeveloperZero18-Jun-09 22:49 
AnswerRe: Software Process Change Best Practices Pin
Eddy Vluggen18-Jun-09 22:56
professionalEddy Vluggen18-Jun-09 22:56 
QuestionNested try/catch blocks Pin
Helfdane18-Jun-09 22:35
Helfdane18-Jun-09 22:35 
AnswerRe: Nested try/catch blocks Pin
Christian Graus18-Jun-09 22:41
protectorChristian Graus18-Jun-09 22:41 
GeneralRe: Nested try/catch blocks Pin
Helfdane18-Jun-09 22:45
Helfdane18-Jun-09 22:45 
JokeRe: Nested try/catch blocks Pin
DaveyM6918-Jun-09 22:49
professionalDaveyM6918-Jun-09 22:49 
GeneralRe: Nested try/catch blocks Pin
Helfdane18-Jun-09 22:53
Helfdane18-Jun-09 22:53 
GeneralOT Pin
Vikram A Punathambekar18-Jun-09 23:59
Vikram A Punathambekar18-Jun-09 23:59 
AnswerRe: Nested try/catch blocks Pin
Nagy Vilmos18-Jun-09 22:58
professionalNagy Vilmos18-Jun-09 22:58 
GeneralRe: Nested try/catch blocks Pin
Helfdane18-Jun-09 23:16
Helfdane18-Jun-09 23:16 
GeneralRe: Nested try/catch blocks Pin
Nagy Vilmos19-Jun-09 0:58
professionalNagy Vilmos19-Jun-09 0: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.