Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralCheck If the software already running Pin
kevin_smoke21-Jul-05 1:26
kevin_smoke21-Jul-05 1:26 
GeneralRe: Check If the software already running Pin
Vasudevan Deepak Kumar21-Jul-05 2:36
Vasudevan Deepak Kumar21-Jul-05 2:36 
GeneralThread Abort Pin
Blue_Skye21-Jul-05 1:22
Blue_Skye21-Jul-05 1:22 
GeneralRe: Thread Abort Pin
LongRange.Shooter21-Jul-05 4:11
LongRange.Shooter21-Jul-05 4:11 
GeneralRe: Thread Abort Pin
Blue_Skye21-Jul-05 6:29
Blue_Skye21-Jul-05 6:29 
GeneralRe: Thread Abort Pin
S. Senthil Kumar21-Jul-05 6:37
S. Senthil Kumar21-Jul-05 6:37 
GeneralAbout threading Pin
Rassul Yunussov21-Jul-05 1:20
Rassul Yunussov21-Jul-05 1:20 
GeneralRe: About threading Pin
LongRange.Shooter21-Jul-05 4:17
LongRange.Shooter21-Jul-05 4:17 
Any time you have a process using Forms, you will have issues when dealing with more than one thread. But what you describe sounds like you need to consider implementing the Model, View, Controller pattern to solve your problem.

In the MVC pattern, your various elements on your form are Views of data. The Model handles read/update of data and implements an Observer pattern. The Views are subscribers to the Observer.

The controller creates the Views, tells them their states, and receives events that represent User Gestures. So when a 'user gesture' occurs that changes data in your TOC (for example) the controller notifies the Model what that change is (maybe by something like model.StateChange(chapterChosen)).

The model gets that particular chapter object, and raises the Observer event. The Views receive the event and read the data specific to each view from the Model. Thus you change one control and all of the controls automatically change.

There are 10 kinds of people in the world.

Those that read binary...

...and those who don't.

GeneralRe: About threading Pin
Rassul Yunussov21-Jul-05 19:27
Rassul Yunussov21-Jul-05 19:27 
GeneralRe: About threading Pin
LongRange.Shooter22-Jul-05 5:02
LongRange.Shooter22-Jul-05 5:02 
GeneralRe: About threading Pin
Rassul Yunussov21-Jul-05 19:46
Rassul Yunussov21-Jul-05 19:46 
GeneralRe: About threading Pin
Rassul Yunussov21-Jul-05 21:48
Rassul Yunussov21-Jul-05 21:48 
GeneralCreating a Gif file Pin
djing198520-Jul-05 23:34
djing198520-Jul-05 23:34 
GeneralRe: Creating a Gif file Pin
Libor Tinka21-Jul-05 0:05
Libor Tinka21-Jul-05 0:05 
GeneralRe: Creating a Gif file Pin
djing198521-Jul-05 0:33
djing198521-Jul-05 0:33 
GeneralRe: Creating a Gif file Pin
Yoyosh21-Jul-05 1:59
Yoyosh21-Jul-05 1:59 
GeneralRe: Creating a Gif file Pin
poucin10021-Jul-05 2:03
poucin10021-Jul-05 2:03 
GeneralRe: Creating a Gif file Pin
djing198521-Jul-05 4:25
djing198521-Jul-05 4:25 
GeneralIL code security Pin
Libor Tinka20-Jul-05 23:03
Libor Tinka20-Jul-05 23:03 
GeneralRe: IL code security Pin
Corinna John20-Jul-05 23:38
Corinna John20-Jul-05 23:38 
GeneralRe: IL code security Pin
Libor Tinka21-Jul-05 0:00
Libor Tinka21-Jul-05 0:00 
GeneralMDI Forms Pin
rmedo20-Jul-05 22:37
rmedo20-Jul-05 22:37 
GeneralRe: MDI Forms Pin
Dave Kreskowiak21-Jul-05 2:24
mveDave Kreskowiak21-Jul-05 2:24 
GeneralRe: MDI Forms Pin
rmedo21-Jul-05 2:25
rmedo21-Jul-05 2:25 
GeneralRe: MDI Forms Pin
Dave Kreskowiak21-Jul-05 4:36
mveDave Kreskowiak21-Jul-05 4:36 

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.