Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a memory mapped file in a service? Pin
Ciumac Sergiu5-Apr-11 0:06
Ciumac Sergiu5-Apr-11 0:06 
GeneralRe: How to create a memory mapped file in a service? Pin
PIEBALDconsult5-Apr-11 19:17
mvePIEBALDconsult5-Apr-11 19:17 
GeneralRe: How to create a memory mapped file in a service? Pin
occam5-Apr-11 23:29
occam5-Apr-11 23:29 
AnswerRe: How to create a memory mapped file in a service? Pin
PIEBALDconsult5-Apr-11 19:16
mvePIEBALDconsult5-Apr-11 19:16 
GeneralRe: How to create a memory mapped file in a service? Pin
occam7-Apr-11 22:08
occam7-Apr-11 22:08 
QuestionADDINS Pin
Abou taleb4-Apr-11 13:36
Abou taleb4-Apr-11 13:36 
AnswerRe: ADDINS Pin
dan!sh 4-Apr-11 20:41
professional dan!sh 4-Apr-11 20:41 
Questionchange common button properties from external thread Pin
Member 78123184-Apr-11 13:24
Member 78123184-Apr-11 13:24 
Hi guys, I have the following problem.

I have 3 buttons (ProcessA, ProcessB and ProcessC) and this are the scenarios:

- By the time I push ProcessA, then disable ProcessB and ProcessC buttons
- By the time I push ProcessB, then disable ProcessC and ProcessA buttons

What I am doing now to set one button properties from an external thead are the following sentences:

if ProcessA is started, then
changeBtnStatus(btnProcessB, false);
changeBtnStatus(btnProcessC, false);
if ProcessA is stopped, then
changeBtnStatus(btnProcessB, true);
changeBtnStatus(btnProcessC, true);

and the same for processB

if ProcessB is started, then
changeBtnStatus(btnProcessC, false);
changeBtnStatus(btnProcessA, false);
if ProcessB is stopped, then
changeBtnStatus(btnProcessC, true);
changeBtnStatus(btnProcessA, true);

this is the generic method

public void changeBtnStatus(Button button, bool status)
{
button.Invoke((MethodInvoker)delegate { button.Enabled = status; });
}

ProcessB is working fine, but ProcessA button is not working well. The ProcessC button is not getting disabled by pression btnProcessA, why this happens? I have made some tests and I realized that I uncomment ProcessB block of code, ProcessA will work correctly. The problem resides in chaging btnProcessC propierties because both blocks set this property.

Hope this is enough information.

Thank you in advance!
AnswerRe: change common button properties from external thread Pin
Luc Pattyn4-Apr-11 15:12
sitebuilderLuc Pattyn4-Apr-11 15:12 
QuestionExecute cross-app domain code Pin
Benny_Lava4-Apr-11 3:43
Benny_Lava4-Apr-11 3:43 
AnswerRe: Execute cross-app domain code Pin
BobJanova4-Apr-11 4:53
BobJanova4-Apr-11 4:53 
QuestionDataset to defined XML schema Pin
Yosh_3-Apr-11 23:37
professionalYosh_3-Apr-11 23:37 
AnswerRe: Dataset to defined XML schema Pin
#realJSOP4-Apr-11 1:20
professional#realJSOP4-Apr-11 1:20 
GeneralRe: Dataset to defined XML schema Pin
Yosh_4-Apr-11 1:27
professionalYosh_4-Apr-11 1:27 
GeneralRe: Dataset to defined XML schema Pin
Pete O'Hanlon4-Apr-11 1:38
mvePete O'Hanlon4-Apr-11 1:38 
GeneralRe: Dataset to defined XML schema Pin
Yosh_4-Apr-11 1:40
professionalYosh_4-Apr-11 1:40 
GeneralRe: Dataset to defined XML schema Pin
Pete O'Hanlon4-Apr-11 1:44
mvePete O'Hanlon4-Apr-11 1:44 
GeneralRe: Dataset to defined XML schema Pin
Yosh_4-Apr-11 2:05
professionalYosh_4-Apr-11 2:05 
GeneralRe: Dataset to defined XML schema Pin
Pete O'Hanlon4-Apr-11 2:14
mvePete O'Hanlon4-Apr-11 2:14 
GeneralRe: Dataset to defined XML schema Pin
Yosh_4-Apr-11 2:23
professionalYosh_4-Apr-11 2:23 
AnswerRe: Dataset to defined XML schema Pin
Rob Philpott4-Apr-11 2:17
Rob Philpott4-Apr-11 2:17 
GeneralRe: Dataset to defined XML schema Pin
Yosh_4-Apr-11 2:31
professionalYosh_4-Apr-11 2:31 
GeneralRe: Dataset to defined XML schema Pin
Rob Philpott4-Apr-11 2:37
Rob Philpott4-Apr-11 2:37 
GeneralRe: Dataset to defined XML schema Pin
Yosh_4-Apr-11 3:19
professionalYosh_4-Apr-11 3:19 
GeneralRe: Dataset to defined XML schema Pin
Pete O'Hanlon4-Apr-11 2:41
mvePete O'Hanlon4-Apr-11 2:41 

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.