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
ankur7891.4K
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  
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

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

  Print Answers RSS
0 CPallini 550
1 Sergey Alexandrovich Kryukov 420
2 George Jonsson 288
3 Pheonyx 218
4 OriginalGriff 200
0 OriginalGriff 4,813
1 CPallini 3,850
2 Sergey Alexandrovich Kryukov 3,224
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100