Click here to Skip to main content
15,923,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 11:08
Jacob Dixon27-Jan-08 11:08 
GeneralRe: Passing strings between forms that are both open. Pin
Pete O'Hanlon27-Jan-08 11:19
mvePete O'Hanlon27-Jan-08 11:19 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 11:28
Jacob Dixon27-Jan-08 11:28 
GeneralRe: Passing strings between forms that are both open. Pin
Nadia Monalisa27-Jan-08 13:20
Nadia Monalisa27-Jan-08 13:20 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 16:03
Jacob Dixon27-Jan-08 16:03 
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 16:37
professionalPaul Conrad27-Jan-08 16:37 
GeneralRe: Passing strings between forms that are both open. Pin
Nadia Monalisa27-Jan-08 23:44
Nadia Monalisa27-Jan-08 23:44 
GeneralRe: Passing strings between forms that are both open. Pin
LongRange.Shooter28-Jan-08 8:08
LongRange.Shooter28-Jan-08 8:08 
As Pete indicated, you really need to implement a design pattern that will meet your need.

The MVC Pattern is one approach and will work if you have two forms within a single application space.

The Publish/Subscribe Patter is another approach that is basically a very loosely bound MVC pattern.

When each form becomes active, they will contact the data manager and subscribe an EventHandler for any time that data changes.

When one form sends a message to update something (like phone or description) then once the change is finished an event is raised that notifies all parties that the data changed.

The event handler can pass an object which will indicate what changed, and what the value is now. Each subscriber looks at the object, determines if it applies to them, then changes what they are displaying (changing the view as Pete described it).

This is the only VALID way that you can have one form reflect changes that another form has done.
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 16:37
professionalPaul Conrad27-Jan-08 16:37 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 17:25
Jacob Dixon27-Jan-08 17:25 
GeneralDirectX and Threading Pin
Mabre of the Tadadas27-Jan-08 10:23
Mabre of the Tadadas27-Jan-08 10:23 
GeneralRe: DirectX and Threading Pin
Paul Conrad27-Jan-08 10:42
professionalPaul Conrad27-Jan-08 10:42 
GeneralRe: DirectX and Threading [modified] Pin
Mabre of the Tadadas27-Jan-08 10:45
Mabre of the Tadadas27-Jan-08 10:45 
GeneralRe: DirectX and Threading Pin
Luc Pattyn27-Jan-08 11:10
sitebuilderLuc Pattyn27-Jan-08 11:10 
GeneralRe: DirectX and Threading Pin
Mabre of the Tadadas27-Jan-08 11:29
Mabre of the Tadadas27-Jan-08 11:29 
GeneralRe: DirectX and Threading Pin
Luc Pattyn27-Jan-08 11:37
sitebuilderLuc Pattyn27-Jan-08 11:37 
GeneralRe: DirectX and Threading Pin
Mabre of the Tadadas27-Jan-08 12:01
Mabre of the Tadadas27-Jan-08 12:01 
GeneralRe: DirectX and Threading Pin
Luc Pattyn27-Jan-08 12:08
sitebuilderLuc Pattyn27-Jan-08 12:08 
GeneralRe: DirectX and Threading Pin
Mabre of the Tadadas27-Jan-08 12:10
Mabre of the Tadadas27-Jan-08 12:10 
QuestionDrag and drop problem Pin
DSdragondude27-Jan-08 7:04
DSdragondude27-Jan-08 7:04 
GeneralRe: Drag and drop problem Pin
Paul Conrad27-Jan-08 7:18
professionalPaul Conrad27-Jan-08 7:18 
GeneralRe: Drag and drop problem Pin
DSdragondude27-Jan-08 7:27
DSdragondude27-Jan-08 7:27 
GeneralRe: Drag and drop problem Pin
Paul Conrad27-Jan-08 7:30
professionalPaul Conrad27-Jan-08 7:30 
GeneralRe: Drag and drop problem Pin
DSdragondude27-Jan-08 7:33
DSdragondude27-Jan-08 7:33 
GeneralRe: Drag and drop problem Pin
Paul Conrad27-Jan-08 7:39
professionalPaul Conrad27-Jan-08 7:39 

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.