Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access Form from Class Pin
parth.p8-Apr-08 3:13
parth.p8-Apr-08 3:13 
GeneralRe: Access Form from Class Pin
carbon_golem8-Apr-08 3:20
carbon_golem8-Apr-08 3:20 
GeneralRe: Access Form from Class Pin
parth.p8-Apr-08 3:25
parth.p8-Apr-08 3:25 
GeneralRe: Access Form from Class Pin
carbon_golem8-Apr-08 3:35
carbon_golem8-Apr-08 3:35 
GeneralRe: Access Form from Class Pin
Gareth H8-Apr-08 4:22
Gareth H8-Apr-08 4:22 
GeneralRe: Access Form from Class Pin
Dave Kreskowiak8-Apr-08 5:19
mveDave Kreskowiak8-Apr-08 5:19 
GeneralRe: Access Form from Class Pin
carbon_golem8-Apr-08 16:56
carbon_golem8-Apr-08 16:56 
GeneralRe: Access Form from Class Pin
Dave Kreskowiak8-Apr-08 5:16
mveDave Kreskowiak8-Apr-08 5:16 
If you're doing this, it's an indication of bad design, violating OOP rules for encapsulation. Why would your "Global" class need to know anything about a form, or the controls on it? Hint: In proper design - the "Global" class shouldn't know or care about anything else outside of itself.

If you want to send data and status information back to Form2, the Globals class should expose events or delegates that an instance of Form2 should subscribe to to get notification of these things.


A guide to posting questions on CodeProject[^]



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




GeneralRe: Access Form from Class Pin
Gareth H8-Apr-08 5:38
Gareth H8-Apr-08 5:38 
QuestionAllow service to interact with Desktop Pin
ptr2void8-Apr-08 2:36
ptr2void8-Apr-08 2:36 
GeneralRe: Allow service to interact with Desktop Pin
Dave Kreskowiak8-Apr-08 5:13
mveDave Kreskowiak8-Apr-08 5:13 
GeneralRe: Allow service to interact with Desktop Pin
som.nitk8-Apr-08 5:23
som.nitk8-Apr-08 5:23 
QuestionStackOverflow in ListView Pin
Pathetic Logic8-Apr-08 1:22
Pathetic Logic8-Apr-08 1:22 
GeneralRe: StackOverflow in ListView Pin
Christian Graus8-Apr-08 1:28
protectorChristian Graus8-Apr-08 1:28 
QuestionRe: StackOverflow in ListView Pin
Pathetic Logic8-Apr-08 3:04
Pathetic Logic8-Apr-08 3:04 
AnswerRe: StackOverflow in ListView Pin
Pathetic Logic8-Apr-08 4:51
Pathetic Logic8-Apr-08 4:51 
GeneralRegarding Multithreading Pin
tasumisra8-Apr-08 0:32
tasumisra8-Apr-08 0:32 
GeneralRe: Regarding Multithreading Pin
Christian Graus8-Apr-08 0:34
protectorChristian Graus8-Apr-08 0:34 
QuestionHow to start learning about creating database server. Pin
toeh7-Apr-08 23:56
toeh7-Apr-08 23:56 
AnswerRe: How to start learning about creating database server. Pin
Christian Graus8-Apr-08 0:16
protectorChristian Graus8-Apr-08 0:16 
AnswerRe: How to start learning about creating database server. Pin
Pete O'Hanlon8-Apr-08 0:58
mvePete O'Hanlon8-Apr-08 0:58 
AnswerRe: How to start learning about creating database server. Pin
darkelv8-Apr-08 1:26
darkelv8-Apr-08 1:26 
Questionexporting windows form as pdf Pin
Faysal7-Apr-08 23:43
Faysal7-Apr-08 23:43 
GeneralRe: exporting windows form as pdf Pin
Christian Graus8-Apr-08 0:17
protectorChristian Graus8-Apr-08 0:17 
GeneralRe: exporting windows form as pdf Pin
Faysal8-Apr-08 0:56
Faysal8-Apr-08 0:56 

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.