Support Forums
[VB] Menu which opens a program? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [VB] Menu which opens a program? (/showthread.php?tid=16188)



[VB] Menu which opens a program? - Perfects - 02-15-2011

Hello, recently I've made an AutoTyper.
I want to make a few other programs too (Autoclicker,e-mail bomber) the problem is, I want to put them in 1 program. A menu, and when I click a button which says for example : AutoClicker, the AutoClicker program which I made before will pop-up.
I know this is possible, I just forgot how.
Thanks in advanceSmile


RE: [VB] Menu which opens a program? - Gaijin - 02-15-2011

You can use the function Shell, included in the namespace Microsoft.VisualBasic.Compatibility.
You also have the option to use System.Diagnostics.Process, if you're using .NET.

Code:
Shell("Path to programm to execute")
' OR
System.Diagnostics.Process.Start("Path to programm to execute")

Shell()
System.Diagnostics.Process.Start()

EDIT:
You also can import the code of those programs to execute on menu click, or create a .dll and import it in your current project.


RE: [VB] Menu which opens a program? - Fragma - 02-15-2011

Just drag a Menu Strip onto your form?

Tongue


RE: [VB] Menu which opens a program? - Modestep - 02-15-2011

Add some forms to your program, on each form a different function. Then make a button called "email bomber" and show the form like this= form2.show


RE: [VB] Menu which opens a program? - MoonWalker - 02-17-2011

Make a form then add a button in it. Change caption to "Autoclicker" button name will be button1. Then add a new form form name will be form2 then make your autoclicker in that form and then go back to first form and double click on button1 and write this code
Code:
form2.show
form.visible = false