Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi In my application which designed by c#, I want to execute calculator in my form .
But when it be called by following command, the current form will be closed.
Process ie = Process.Start("calc.exe");

How can I do this, so that current form remain open?
Thanks very much
Posted
Comments
Basmeh Awad 15-May-13 6:06am    
your form is getting colsed after starting the process????
this is not possible.. add a brake point and check your code there can be problem in other part of your code

1 solution

That turns out not to be the case: when I execute
C#
Process ie = Process.Start("calc.exe");
The Windows calculator appears, and my form also remains open. It is only if I execute the code
C#
Process ie = Process.Start("calc.exe");
Close();
That anything happens to my form as a result.

I suspect the problem lies in a different part of your code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900