Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir/Ma'am


How can i call an Other window form exe on the button click event
Posted

System.Diagnostic.Process.Start: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].

It does not matter if it is a forms application or not. Usually, makes little to no sense. If the child application yours? If so, absolutely no sense. You should better develop one application of the two.

—SA
 
Share this answer
 
 
Share this answer
 
v2
HI,

You can do it by simply calling the process thread or creating the object of the form and invoking the form in the buttonclick event.

Refer my tips here

Thanks
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 14-Feb-13 23:30pm    
What is "calling the process thread"? What is "invoking of the form"? How is related to EXE? Don't bother to answer: you have no clue.
Sorry, I voted 1.
—SA
Abhishek Pant 14-Feb-13 23:38pm    
I also agree with SA in this case for your answer.
[no name] 14-Feb-13 23:39pm    
Updated my ans...
Use this code, this is in c# as i work on c#. But will work the same way on VB.net.
Try and if u have any problem then tell me.

C#
System.Diagnostics.ProcessStartInfo start = new System.Diagnostics.ProcessStartInfo();
           start.FileName = "The full address of the new application to start";
           System.Diagnostics.Process pro = new System.Diagnostics.Process();
           start.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
// Use this if u want the new application to be hidden, ie running on background for executing some commands.
           pro.StartInfo = start;
           pro.Start();
 
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