Click here to Skip to main content
15,891,021 members
Home / Discussions / C#
   

C#

 
Questionapp.config Pin
Vivek Mahajan30-May-08 8:20
Vivek Mahajan30-May-08 8:20 
AnswerRe: app.config Pin
#realJSOP30-May-08 8:35
mve#realJSOP30-May-08 8:35 
GeneralRe: app.config Pin
Vivek Mahajan30-May-08 8:46
Vivek Mahajan30-May-08 8:46 
GeneralRe: app.config Pin
#realJSOP30-May-08 9:34
mve#realJSOP30-May-08 9:34 
QuestionC#/Asp.net SQL Question Pin
mina mathew30-May-08 8:19
mina mathew30-May-08 8:19 
AnswerRe: C#/Asp.net SQL Question Pin
Jimmanuel30-May-08 9:40
Jimmanuel30-May-08 9:40 
GeneralRe: C#/Asp.net SQL Question Pin
mina mathew30-May-08 16:19
mina mathew30-May-08 16:19 
QuestionProcess start problems [modified] Pin
Xmen Real 30-May-08 6:44
professional Xmen Real 30-May-08 6:44 
i want to start a program from my application with arguments, that program support file association, so i associate it with a file extension, and its works when i double click on file, but problem is that when i try to run that program with my app with argument then that program just run not open that file thats path is in arguments property and second problem is that its not rasing event when that program closed, here is the code i wrote :

Process tmp_process = new Process();
private void Main_Load(object sender, EventArgs e)
{
    tmp_process.Exited += new EventHandler(exited_event);
}
private void button1_Click(object sender, EventArgs e)
{
    tmp_process.StartInfo.Arguments = @"C:\new folder\abc.ghj";
    tmp_process.StartInfo.FileName = @"C:\program.exe";
    tmp_process.Start();
}
void exited_event(object sender, EventArgs e)
{
    MessageBox.Show("Closed");
}


any solution ? thanks

Edited :
second problem solved after writing this line :
tmp_process.EnableRaisingEvents = true;
Smile | :)

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

modified on Friday, May 30, 2008 12:59 PM

AnswerRe: Process start problems Pin
Ennis Ray Lynch, Jr.30-May-08 7:57
Ennis Ray Lynch, Jr.30-May-08 7:57 
GeneralRe: Process start problems Pin
Xmen Real 30-May-08 8:00
professional Xmen Real 30-May-08 8:00 
QuestionPassing info from a thread Pin
brsecu30-May-08 5:21
brsecu30-May-08 5:21 
AnswerRe: Passing info from a thread Pin
Judah Gabriel Himango30-May-08 5:27
sponsorJudah Gabriel Himango30-May-08 5:27 
GeneralRe: Passing info from a thread Pin
Ennis Ray Lynch, Jr.30-May-08 6:04
Ennis Ray Lynch, Jr.30-May-08 6:04 
GeneralRe: Passing info from a thread Pin
Judah Gabriel Himango30-May-08 7:39
sponsorJudah Gabriel Himango30-May-08 7:39 
QuestionSortable List<t></t> Pin
eggsovereasy30-May-08 4:18
eggsovereasy30-May-08 4:18 
AnswerRe: Sortable List Pin
led mike30-May-08 4:46
led mike30-May-08 4:46 
QuestionImplement a Cyber Coffe in C# Pin
hendryck30-May-08 4:09
hendryck30-May-08 4:09 
AnswerRe: Implement a Cyber Coffe in C# Pin
Colin Angus Mackay30-May-08 4:22
Colin Angus Mackay30-May-08 4:22 
QuestionCoverflow/Shift window switching effect Pin
bDreea30-May-08 4:03
bDreea30-May-08 4:03 
QuestionHELP HELP URGENTLY!!!! Pin
Wajeeha30-May-08 2:55
Wajeeha30-May-08 2:55 
AnswerRe: HELP HELP URGENTLY!!!! Pin
Wajeeha30-May-08 3:09
Wajeeha30-May-08 3:09 
GeneralRe: HELP HELP URGENTLY!!!! Pin
subhankarbiswas30-May-08 9:00
subhankarbiswas30-May-08 9:00 
AnswerRe: HELP HELP URGENTLY!!!! PinPopular
Andy *M*30-May-08 3:17
Andy *M*30-May-08 3:17 
AnswerRe: HELP HELP URGENTLY!!!! PinPopular
Colin Angus Mackay30-May-08 3:25
Colin Angus Mackay30-May-08 3:25 
AnswerRe: HELP HELP URGENTLY!!!! PinPopular
Baconbutty30-May-08 3:37
Baconbutty30-May-08 3:37 

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.