Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
GeneralRe: Updating a progressbar from a seperate thread Pin
sharpiesharpie3-Mar-07 2:32
sharpiesharpie3-Mar-07 2:32 
GeneralRe: Updating a progressbar from a seperate thread Pin
S. Senthil Kumar3-Mar-07 7:35
S. Senthil Kumar3-Mar-07 7:35 
GeneralRe: Updating a progressbar from a seperate thread Pin
sharpiesharpie3-Mar-07 9:04
sharpiesharpie3-Mar-07 9:04 
GeneralRe: Updating a progressbar from a seperate thread Pin
S. Senthil Kumar3-Mar-07 15:41
S. Senthil Kumar3-Mar-07 15:41 
QuestionHow to configure SQL Server 2000 to allow remote connections ? [modified] Pin
hdv2122-Mar-07 11:19
hdv2122-Mar-07 11:19 
AnswerRe: How to configure SQL Server 2000 to allow remote connections ? Pin
Vasudevan Deepak Kumar4-Mar-07 5:18
Vasudevan Deepak Kumar4-Mar-07 5:18 
QuestionRun Once and accept parameters Pin
Christopher Thornburg2-Mar-07 9:42
Christopher Thornburg2-Mar-07 9:42 
AnswerRe: Run Once and accept parameters Pin
Luc Pattyn2-Mar-07 10:35
sitebuilderLuc Pattyn2-Mar-07 10:35 
Hi,

I dont know enough about settings files, I am not sure how it would behave when
more than one app instance exists, and how you could use them to communicate
(the first instance needs to reread once the second one changes the settings?).
Also I want solutions that would work on older .NET versions (1.1)

I have an app that wants to run as a singleton. My implementation works fine on
.NET 1.1 and 2.0
If it can create a named mutex, it knows it is the first instance, and it creates
a named pipe (sounds like the mutex is not really needed, could just try and create the
pipe right away I guess).
Otherwise, it connects to the pipe, sends the command line thru it, and exits.
The first instance has a separate thread that reads on the pipe, and acts on it
when something is received.

I use PInvoke to call CreateFile, WriteFile, ReadFile, CreateNamedPipe, ConnectNamedPipe
and CloseHandle.

Smile | :)



Luc Pattyn

[My Articles]

QuestionHow can I set the Maximum Working Area [modified] Pin
Khoramdin2-Mar-07 8:54
Khoramdin2-Mar-07 8:54 
AnswerRe: How can I set the Maximum Working Area Pin
Chris Buckett2-Mar-07 10:02
Chris Buckett2-Mar-07 10:02 
QuestionHow to display the HTML content from XML in winforms [modified] Pin
engsrini2-Mar-07 8:39
engsrini2-Mar-07 8:39 
AnswerRe: How to display the HTML content from XML in winforms Pin
Edmundisme2-Mar-07 9:20
Edmundisme2-Mar-07 9:20 
GeneralRe: How to display the HTML content from XML in winforms Pin
engsrini2-Mar-07 10:38
engsrini2-Mar-07 10:38 
GeneralRe: How to display the HTML content from XML in winforms Pin
Edmundisme2-Mar-07 11:29
Edmundisme2-Mar-07 11:29 
GeneralRe: How to display the HTML content from XML in winforms Pin
theomed2-Mar-07 19:17
theomed2-Mar-07 19:17 
QuestionHow to add values of generic type T Pin
Marc Clifton2-Mar-07 7:57
mvaMarc Clifton2-Mar-07 7:57 
AnswerRe: How to add values of generic type T Pin
Guffa2-Mar-07 8:23
Guffa2-Mar-07 8:23 
GeneralRe: How to add values of generic type T Pin
Marc Clifton2-Mar-07 8:55
mvaMarc Clifton2-Mar-07 8:55 
GeneralRe: How to add values of generic type T Pin
Andrew Rissing2-Mar-07 9:11
Andrew Rissing2-Mar-07 9:11 
GeneralRe: How to add values of generic type T Pin
Marc Clifton2-Mar-07 9:36
mvaMarc Clifton2-Mar-07 9:36 
AnswerRe: How to add values of generic type T Pin
Insincere Dave2-Mar-07 9:12
Insincere Dave2-Mar-07 9:12 
GeneralRe: How to add values of generic type T Pin
Marc Clifton2-Mar-07 9:34
mvaMarc Clifton2-Mar-07 9:34 
QuestionHow to work with Double Buffering C# Pin
laura13162-Mar-07 7:57
laura13162-Mar-07 7:57 
AnswerRe: How to work with Double Buffering C# Pin
Dave Kreskowiak2-Mar-07 8:06
mveDave Kreskowiak2-Mar-07 8:06 
AnswerRe: How to work with Double Buffering C# Pin
Luc Pattyn2-Mar-07 9:41
sitebuilderLuc Pattyn2-Mar-07 9: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.