Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 17:01
sitebuilderLuc Pattyn15-Feb-09 17:01 
NewsRe: Tabs not refresh Pin
CodingLover15-Feb-09 17:15
CodingLover15-Feb-09 17:15 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 17:28
sitebuilderLuc Pattyn15-Feb-09 17:28 
GeneralRe: Tabs not refresh Pin
CodingLover15-Feb-09 17:40
CodingLover15-Feb-09 17:40 
AnswerRe: Tabs not refresh Pin
Luc Pattyn16-Feb-09 0:02
sitebuilderLuc Pattyn16-Feb-09 0:02 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 17:12
sitebuilderLuc Pattyn15-Feb-09 17:12 
QuestionManaging application execution Pin
jimmov115-Feb-09 15:59
jimmov115-Feb-09 15:59 
AnswerRe: Managing application execution Pin
Luc Pattyn15-Feb-09 16:36
sitebuilderLuc Pattyn15-Feb-09 16:36 
Hi,

you need two things:

1.
the logic to detect more than one instance got launched; so the extra instances can eventually exit again.

2.
a way to pass the command line of a second instance to the first instance. That is interprocess communication, there are many ways to do it. The way I typically do this consists of:
- a named pipe, that gets created using the Win32 function CreateFile (yes that takes P/Invoke) and a fixed name;
- WriteFile to send the command line of a second instance
- a thread on the first instance, performing a ReadFile on the same pipe, and acting on anything that
comes in.
WARNING: there is a security hole: any program could now send a string to your first instance (however
any program could launch your app with some command line too).

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 8:10 AM

QuestionConvert a string to Float (two numbers after the comma) Pin
abbd15-Feb-09 12:30
abbd15-Feb-09 12:30 
AnswerRe: Convert a string to Float (two numbers after the comma) [modified] Pin
Nico Patitz15-Feb-09 12:46
Nico Patitz15-Feb-09 12:46 
QuestionChild controls interaction in User Control. [modified] Pin
hdv21215-Feb-09 11:39
hdv21215-Feb-09 11:39 
AnswerRe: Child controls interaction in User Control. Pin
Nico Patitz15-Feb-09 12:16
Nico Patitz15-Feb-09 12:16 
GeneralRe: Child controls interaction in User Control. Pin
hdv21215-Feb-09 12:18
hdv21215-Feb-09 12:18 
AnswerRe: Child controls interaction in User Control. Pin
_Maxxx_15-Feb-09 14:18
professional_Maxxx_15-Feb-09 14:18 
GeneralRe: Child controls interaction in User Control. Pin
hdv21215-Feb-09 21:11
hdv21215-Feb-09 21:11 
QuestionMy class Pin
Member 391685615-Feb-09 10:44
Member 391685615-Feb-09 10:44 
AnswerRe: My class Pin
DaveyM6915-Feb-09 11:24
professionalDaveyM6915-Feb-09 11:24 
AnswerRe: My class Pin
Christian Graus15-Feb-09 11:31
protectorChristian Graus15-Feb-09 11:31 
GeneralRe: My class Pin
Member 391685616-Feb-09 0:27
Member 391685616-Feb-09 0:27 
GeneralRe: My class Pin
Wes Aday16-Feb-09 4:11
professionalWes Aday16-Feb-09 4:11 
GeneralRe: My class Pin
Member 391685616-Feb-09 22:09
Member 391685616-Feb-09 22:09 
QuestionCircle creation in c# Pin
anishkannan15-Feb-09 7:36
anishkannan15-Feb-09 7:36 
AnsweryRe: Circle creation in c# Pin
DaveyM6915-Feb-09 9:01
professionalDaveyM6915-Feb-09 9:01 
GeneralRe: yRe: Circle creation in c# Pin
anishkannan15-Feb-09 17:36
anishkannan15-Feb-09 17:36 
Questionclient server architecture for web appln in C# Pin
madhuri pokharkar15-Feb-09 7:14
madhuri pokharkar15-Feb-09 7:14 

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.