Click here to Skip to main content
15,896,507 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check State Pin
Skippums6-Dec-07 7:14
Skippums6-Dec-07 7:14 
QuestionAccessing an instance of a form within an Application Pin
Naz6-Dec-07 6:05
Naz6-Dec-07 6:05 
GeneralRe: Accessing an instance of a form within an Application Pin
Justin Perez6-Dec-07 6:19
Justin Perez6-Dec-07 6:19 
QuestionRe: Accessing an instance of a form within an Application Pin
Naz6-Dec-07 7:25
Naz6-Dec-07 7:25 
GeneralRe: Accessing an instance of a form within an Application Pin
Bert delaVega6-Dec-07 8:14
Bert delaVega6-Dec-07 8:14 
GeneralRe: Accessing an instance of a form within an Application Pin
Naz6-Dec-07 8:34
Naz6-Dec-07 8:34 
GeneralRe: Accessing an instance of a form within an Application Pin
Bert delaVega6-Dec-07 9:18
Bert delaVega6-Dec-07 9:18 
GeneralRe: Accessing an instance of a form within an Application Pin
Pete O'Hanlon6-Dec-07 8:47
mvePete O'Hanlon6-Dec-07 8:47 
A better bet for you would be to use a moderator class. The main form would create the mediator and the mediator would be responsible for managing your forms. As an example:
In FormMain:
private Mediator _mediator = new Mediator();

// Create an instance of Form1
_mediator.CreateForm1();
_mediator.CreateForm2();
In the mediator class, the CreateFormn methods would be responsible for instantiating the forms. Obviously, the mediator would catch events from the forms and respond to them to manage the state as appropriate.


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: Accessing an instance of a form within an Application Pin
Justin Perez6-Dec-07 9:27
Justin Perez6-Dec-07 9:27 
GeneralRe: Accessing an instance of a form within an Application Pin
Pete O'Hanlon6-Dec-07 9:54
mvePete O'Hanlon6-Dec-07 9:54 
GeneralTCP/IP - Sockets Problem Pin
half-life6-Dec-07 5:32
half-life6-Dec-07 5:32 
GeneralRe: TCP/IP - Sockets Problem Pin
Ennis Ray Lynch, Jr.6-Dec-07 5:47
Ennis Ray Lynch, Jr.6-Dec-07 5:47 
GeneralRe: TCP/IP - Sockets Problem Pin
led mike6-Dec-07 6:56
led mike6-Dec-07 6:56 
GeneralPlease help Pin
Shani Aulakh6-Dec-07 5:25
Shani Aulakh6-Dec-07 5:25 
GeneralRe: Please help Pin
Paul Conrad6-Dec-07 12:37
professionalPaul Conrad6-Dec-07 12:37 
Questionmatching words with spelling mistakes Pin
mshahrouri6-Dec-07 3:55
mshahrouri6-Dec-07 3:55 
GeneralRe: matching words with spelling mistakes Pin
Nagy Vilmos6-Dec-07 4:36
professionalNagy Vilmos6-Dec-07 4:36 
GeneralRe: matching words with spelling mistakes Pin
Ennis Ray Lynch, Jr.6-Dec-07 6:42
Ennis Ray Lynch, Jr.6-Dec-07 6:42 
GeneralMultiline TextBox problem. Pin
Neuro_pl6-Dec-07 3:53
Neuro_pl6-Dec-07 3:53 
QuestionRead Class information in C# Pin
Abhijit Jana6-Dec-07 3:22
professionalAbhijit Jana6-Dec-07 3:22 
GeneralRe: Read Class information in C# Pin
Skippums6-Dec-07 3:52
Skippums6-Dec-07 3:52 
GeneralRe: Read Class information in C# Pin
Abhijit Jana6-Dec-07 17:21
professionalAbhijit Jana6-Dec-07 17:21 
GeneralRe: Read Class information in C# Pin
Ennis Ray Lynch, Jr.6-Dec-07 8:53
Ennis Ray Lynch, Jr.6-Dec-07 8:53 
GeneralUpdate MS Access Data Structure Pin
polishprogrammer6-Dec-07 3:16
polishprogrammer6-Dec-07 3:16 
GeneralRe: Update MS Access Data Structure Pin
led mike6-Dec-07 7:08
led mike6-Dec-07 7:08 

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.