Click here to Skip to main content
15,905,967 members
Home / Discussions / C#
   

C#

 
AnswerRe: Datagridview shows same record again Pin
padmanabhan N19-Jun-09 0:46
padmanabhan N19-Jun-09 0:46 
AnswerRe: Datagridview shows same record again Pin
CrazyCoder2619-Jun-09 2:14
CrazyCoder2619-Jun-09 2:14 
QuestionSet Control Values on Form from other class Pin
Programm3r18-Jun-09 23:46
Programm3r18-Jun-09 23:46 
AnswerRe: Set Control Values on Form from other class Pin
Christian Graus18-Jun-09 23:49
protectorChristian Graus18-Jun-09 23:49 
GeneralRe: Set Control Values on Form from other class Pin
dan!sh 18-Jun-09 23:57
professional dan!sh 18-Jun-09 23:57 
GeneralRe: Set Control Values on Form from other class Pin
Christian Graus18-Jun-09 23:59
protectorChristian Graus18-Jun-09 23:59 
GeneralRe: Set Control Values on Form from other class Pin
dan!sh 19-Jun-09 0:13
professional dan!sh 19-Jun-09 0:13 
GeneralRe: Set Control Values on Form from other class Pin
Dave Kreskowiak19-Jun-09 4:39
mveDave Kreskowiak19-Jun-09 4:39 
Who cares... The entire point is that the non-form class shouldn't have ANY knowledge of the form using it. It should not have any reason at all to modify UI controls. What if the class needs to be used by another non-form class somewhere down thte road??

The correct way to do this would be to have the Calc class expose methods, events, or delegates, that outside consumer would subscribe, or otherwise wire-up, to receive notifications that the Calc class outputs. But, these would not be manadatory subscriptions to use the class. It should be left up to the caller to determine if it needs this notification information, not the Calc class.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Set Control Values on Form from other class Pin
Programm3r18-Jun-09 23:59
Programm3r18-Jun-09 23:59 
GeneralRe: Set Control Values on Form from other class Pin
Christian Graus19-Jun-09 0:01
protectorChristian Graus19-Jun-09 0:01 
GeneralRe: Set Control Values on Form from other class Pin
Programm3r19-Jun-09 0:03
Programm3r19-Jun-09 0:03 
AnswerRe: Set Control Values on Form from other class Pin
dan!sh 18-Jun-09 23:52
professional dan!sh 18-Jun-09 23:52 
QuestionRe: Set Control Values on Form from other class Pin
Programm3r18-Jun-09 23:55
Programm3r18-Jun-09 23:55 
AnswerRe: Set Control Values on Form from other class Pin
dan!sh 19-Jun-09 2:41
professional dan!sh 19-Jun-09 2:41 
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 
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 

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.