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

C#

 
GeneralRe: Resource files Pin
emran8349-Feb-06 3:59
emran8349-Feb-06 3:59 
QuestionIE Toolbar HELP !!!!! Pin
liquidthoughts9-Feb-06 0:36
liquidthoughts9-Feb-06 0:36 
Questioncommand line arguments Pin
Mridang Agarwalla9-Feb-06 0:02
Mridang Agarwalla9-Feb-06 0:02 
AnswerRe: command line arguments Pin
Ravi Bhavnani9-Feb-06 0:41
professionalRavi Bhavnani9-Feb-06 0:41 
GeneralRe: command line arguments Pin
Mridang Agarwalla9-Feb-06 1:01
Mridang Agarwalla9-Feb-06 1:01 
AnswerRe: command line arguments Pin
mav.northwind9-Feb-06 2:21
mav.northwind9-Feb-06 2:21 
GeneralRe: command line arguments Pin
Mridang Agarwalla9-Feb-06 7:16
Mridang Agarwalla9-Feb-06 7:16 
GeneralRe: command line arguments Pin
mav.northwind9-Feb-06 9:19
mav.northwind9-Feb-06 9:19 
The idea is roughly the following:
1. When the application starts, a mutex is created to decide whether it's the first instance.
2a. If it's the first instance, the application is registered as a remoting server and it's URI is written into the registry.
2b. If it's not the first instance, the URI of the first instance is fetched from the registry and the command line arguments are used as arguments for calling a method on the first instance. Afterwards, the second instance quits.

This behaviour is packed inside an application framework which handles all the dirty details. You just have to attach an event handler for a StartupArguments event and handle the command line arguments you get there.

Regards,
mav

--
Black holes are the places where god divided by 0...
Question"Safely Remove Hardware" USB Key? Pin
LiamD8-Feb-06 23:31
LiamD8-Feb-06 23:31 
AnswerRe: "Safely Remove Hardware" USB Key? Pin
Dave Kreskowiak9-Feb-06 7:31
mveDave Kreskowiak9-Feb-06 7:31 
Questionis it possible to load a excel range object into an system array Pin
thestonefox8-Feb-06 23:27
thestonefox8-Feb-06 23:27 
AnswerRe: is it possible to load a excel range object into an system array Pin
gumi_r@msn.com8-Feb-06 23:40
gumi_r@msn.com8-Feb-06 23:40 
Questionforcing to Stop Background Worker Pin
emran8348-Feb-06 23:25
emran8348-Feb-06 23:25 
AnswerRe: forcing to Stop Background Worker Pin
Ravi Bhavnani9-Feb-06 0:37
professionalRavi Bhavnani9-Feb-06 0:37 
GeneralRe: forcing to Stop Background Worker Pin
emran8349-Feb-06 0:56
emran8349-Feb-06 0:56 
AnswerRe: forcing to Stop Background Worker Pin
Ravi Bhavnani9-Feb-06 1:00
professionalRavi Bhavnani9-Feb-06 1:00 
GeneralRe: forcing to Stop Background Worker Pin
emran8349-Feb-06 2:53
emran8349-Feb-06 2:53 
QuestionFXcop SDK Pin
amit_l8-Feb-06 23:24
amit_l8-Feb-06 23:24 
QuestionAdding DLL reference in runtime Pin
emran8348-Feb-06 23:23
emran8348-Feb-06 23:23 
AnswerRe: Adding DLL reference in runtime Pin
Ingo8-Feb-06 23:37
Ingo8-Feb-06 23:37 
GeneralRe: Adding DLL reference in runtime Pin
emran8349-Feb-06 0:51
emran8349-Feb-06 0:51 
GeneralRe: Adding DLL reference in runtime Pin
Ravi Bhavnani9-Feb-06 5:03
professionalRavi Bhavnani9-Feb-06 5:03 
QuestionOledb Provider giving error for opening DBF file using C#.NET Pin
Anil Dhiman8-Feb-06 23:23
Anil Dhiman8-Feb-06 23:23 
QuestionSave new RIch Text Box function Pin
TheNewNewGuy8-Feb-06 22:55
TheNewNewGuy8-Feb-06 22:55 
AnswerRe: Save new RIch Text Box function Pin
Ingo8-Feb-06 23:36
Ingo8-Feb-06 23: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.