Click here to Skip to main content
15,886,085 members
Home / Discussions / C#
   

C#

 
QuestionPassing Label's Name within a Class outside of the Form [modified] Pin
yogi_bear_7915-Oct-09 4:58
yogi_bear_7915-Oct-09 4:58 
AnswerRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 5:20
sitebuilderLuc Pattyn15-Oct-09 5:20 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 5:47
yogi_bear_7915-Oct-09 5:47 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 5:55
sitebuilderLuc Pattyn15-Oct-09 5:55 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 6:23
yogi_bear_7915-Oct-09 6:23 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 6:56
sitebuilderLuc Pattyn15-Oct-09 6:56 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 7:58
yogi_bear_7915-Oct-09 7:58 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 8:24
sitebuilderLuc Pattyn15-Oct-09 8:24 
You should pass the result from the business logic to the GUI, so
if the result is a number, then put the number in your delegate parameter;
if, I repeat, if the result is a string (e.g. some text to show, NOT the name of a Control), then pass a string;
if the result is a color, then pass a color.

However, unless you are creating a paint program, I don't expect a color is the result of a calculation.
If you want to indicate a state, then the proper way to do it is by defining an enum holding all possible states, and then to output one of those enum values.

You DO need to study a book and start to understand what it is you do; I will not go on and type one page of such books at a time here.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 8:44
yogi_bear_7915-Oct-09 8:44 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 9:05
sitebuilderLuc Pattyn15-Oct-09 9:05 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 10:43
yogi_bear_7915-Oct-09 10:43 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 10:55
sitebuilderLuc Pattyn15-Oct-09 10:55 
AnswerRe: Passing Label's Name within a Class outside of the Form Pin
Ravi Bhavnani15-Oct-09 5:37
professionalRavi Bhavnani15-Oct-09 5:37 
QuestionParse SQL and replace column name with another name Pin
AhmedMasum15-Oct-09 4:27
AhmedMasum15-Oct-09 4:27 
AnswerRe: Parse SQL and replace column name with another name Pin
PIEBALDconsult15-Oct-09 4:56
mvePIEBALDconsult15-Oct-09 4:56 
GeneralRe: Parse SQL and replace column name with another name Pin
AhmedMasum17-Oct-09 2:37
AhmedMasum17-Oct-09 2:37 
QuestionChange color of RibbonControl Pin
yogesh_softworld12315-Oct-09 3:47
yogesh_softworld12315-Oct-09 3:47 
AnswerRe: Change color of RibbonControl Pin
Henry Minute15-Oct-09 4:56
Henry Minute15-Oct-09 4:56 
QuestionLearning ForEach... Pin
JollyMansArt15-Oct-09 3:21
JollyMansArt15-Oct-09 3:21 
AnswerRe: Learning ForEach... Pin
VanityClaw15-Oct-09 3:47
VanityClaw15-Oct-09 3:47 
GeneralRe: Learning ForEach... Pin
JollyMansArt15-Oct-09 3:53
JollyMansArt15-Oct-09 3:53 
QuestionDual running application using same database Pin
dptalt15-Oct-09 2:38
dptalt15-Oct-09 2:38 
AnswerRe: Dual running application using same database Pin
J4amieC15-Oct-09 2:44
J4amieC15-Oct-09 2:44 
AnswerRe: Dual running application using same database Pin
Not Active15-Oct-09 3:50
mentorNot Active15-Oct-09 3:50 
Questionrandom rename for files Pin
Jassim Rahma15-Oct-09 2:37
Jassim Rahma15-Oct-09 2:37 

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.