Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Dear Sir/Ma'am
 

How can i call an Other window form exe on the button click event
Posted 14-Feb-13 17:16pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v2
Comments
Sergey Alexandrovich Kryukov at 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 at 14-Feb-13 23:38pm
   
I also agree with SA in this case for your answer.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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.
 
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();
 
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 472
1 sanket saxena 355
2 CPallini 205
3 thatraja 200
4 OriginalGriff 195
0 Sergey Alexandrovich Kryukov 8,784
1 OriginalGriff 5,025
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid