Launching A Program With A Button?
Aug 24, 2009I was looking to launch a program, such as MS Word, by pressing a button on particular form. Is there a way for me to do this?
View 1 RepliesI was looking to launch a program, such as MS Word, by pressing a button on particular form. Is there a way for me to do this?
View 1 RepliesI want to launch a program with the program path on the textbox typed in and i will press the button to launch it.
View 3 RepliesIs it possible to open/start a program at a specific time/date ?
View 2 RepliesIm trying to launch a program from any computer by using Application.StartupPath & "firefox.exe", but i cat get it to open , heres what im using atm.[code]I dont wanna use the full path names as they may be different on other computers, i know Firefox and IE etc will be the same , but im loooking to open any program regardless of its location.
View 2 RepliesI can launch my external program which is a Virtual Keyboard, but once it launchs then I have to click the textbox on my form or no text appears when I use the Virtual Keyboard. How can I make my form be the focus after the Virtual Keyboard launches?
View 1 RepliesI am currently building a "program launching application" for personal and home use.Basically all it does, is have a toolbar for example File, Edit, Run, Programs ect....Run will bring down a list of common command prompt buttons which then, once clicked, will load cmd and input said code.
Example
Under run > cmd > IPconfig/all my code is as follows:
Private Sub IPConfigurationDisplayConnectionConfigurationToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles IPConfigurationDisplayConnectionConfigurationToolStripMenuItem.Click
Dim Command As String
Command = "ipconfig /all"
[code]....
I know how to make a progress bar, but.... how do I get it to show progress on opening adobe reader?
I'm using VB.Net 2005 Pro and have created an .msi for my app using the built-in installation deployment project.When the installation is running however (or at the end of the process) I need it to run another .msi which I'll include in my distribution.How would I go about that? I've tried adding a custom dialog to the installer but that won't run another .msi.
View 3 Repliesi am having difficulty in lunching an application using vb the application i am trying to launch is a "MicroAppache" a distro of the Appache http server Background When the application is launched, it loads also some dll files and other dependencies.When i use this vb
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("C:UsersvidhuDesktopwebserverinDebugMicApamapache.exe")
End Sub
to launch the exe. it doesnt load. instead it throws an error the it cannot find its dependencies. BUT When i place the vb app which launches the appache exe in the same directory as the appache exe. it works fine! It seems that the mapache.exe tries to find its depenancies in the directory where the launcher is and not in the directory he is in.Example If the launcher is located in:
C:launcher
and the Apache Server is located in
C:launcherapache
it will not work because it tries to find the other files it needs in
C:launch
If the launcher is located in:
C:launcherapache
and the Apache Server is also located in
C:launcherapache
it Will work
I can create a shortcut using this code:
Dim sFolder As String, sTarget As String, sAppName As String
Dim oShell As New WshShell
Dim oShortcut As WshShortcut
[Code]....
This is probaly a simple question, I am not a programmer I am a systems admin. I am trying to launch a application from a visual basic script. Everytime I run the script looks for the application in whatever folder the script is sitting in. If ut the script in the folder where the executable is it works. Unfortunatley this script need to run from users temp directories. What am I doing wrong'
' *****Declaring variables*****
Option Explicit
' Comment the next line out if you are not getting this to work and you need to debug.
[code]....
Okay, I know how to launch a file with its associated app:Process.Start("File.mp3")And I know how to launch an executable: Process.Start("program.exe")This is the best I've been able to come up with for starting an executable with parameters:Process.Start("program.exe", "@ 'List of command line parameters'")Will that work?
View 2 RepliesI am writing a basic little program. Amongst everything, my program will let you install printers remotely, To cut a long story shot I don't want to use the rundll32 shortcut to install as you can only remove the printer using rundll32 again which I don't want.
The way I wanted to do it is create a VBS script and execute it remotely using psexec. This didn't work for some reason, locally the script works fine but when executing it remotely the script runs but doesn't perform any of the actions inside the script.
The only other option I can think of is launching the VBS via WMI. I have done a bit of research and I cant seem to find any VB code that does anything similar.
I was wondering if someone could help. I have a little vb.net program, an exe, a pdf and a pps all burned on a DVD.My vb.net program will autorun and I have command buttons to open each of the other items from the DVD.I can open all items if I use the proper path but not all rom drives are the same. I have searched for this a lot and there are a lot of inguiries regarding the same but none of the solutions seem to work.I have a work around for D:\ and E:\ drives:
Try
Process.Start("D:\MyPresentation\BHW.pps")
Catch
Process.Start("E:\MyPresentation\BHW.pps")
End Try
I use this for each command button.I have tried Process.Start(Application.Startuppath & "\MyPresentation\BHW.pps") to no avail.
I'm using VB.Net 2005 Pro and have created an .msi for my app using the built-in installation deployment project.
When the installation is running however (or at the end of the process) I need it to run another .msi which I'll include in my distribution.
opening a program and type something in their textbox or click on button of program if you can tell me refrence or .net platform class that can i access to another filed program
View 12 Repliesmy folder dialog windows isnt opening. its odd cause its been working for a long time.app closes soon as i click on my button
'Open Folder Dialog
Dim folderDlg As New System.Windows.Forms.FolderBrowserDialog
Dim selectedFolder As String
[code]....
I created an application in Visual Studio 2010 - visual basic. It works great on computer1 and computer2, but on computer3 and computer4 it crashes when its launched. It says that the program has crashed and more information can be found in 3 files named WER.But in these files i can not see an error.
View 8 RepliesWhen I click a button to Shell something, instead of having to specify where the exe (or whatever file it might be) is, i was wondering if I could combine it with VB to make it something like this. Shell ("Internet Explorer.exe"). Also, have VB save the file so anywhere I take that single exe file i made with VB, the exe file I want to shell goes with me. So that way I can launch multiple files from just one exe file and not have any directories to worry about.
View 7 RepliesI have a dual-monitor setup. When I launch the main program, I need to make sure that it always launches in "Screen 1". I have a button within the program that launches another fullscreen window and I need this to always launch in the next available screen (read: not covering the main program window)I am using the System.Windows.Forms.Screen class to try to accomplish this and have have had about 80% success. I can successfully test for multiple monitors (which enables the button). When they click it, I can get it to always launch in the second screen. The problem I'm encountering while testing is the main program is launching in Screen 2, so the second window covers it.
Here's what I'd like to accomplish ultimately: I would like to always launch my program in Maximized stated (and disable resizing,
minimizing/maximizing is ok, just not double-clicking titlebar to resize) in the primary monitor (where Taskbar is being displayed). Then, when the button within the program is pressed, it launches the new window in the NEXT available monitor in Maximized stated.
I have a vb.net application that I compiled and all, I took the EXe and all and placed it on another pc that has only visual studio express on it.
When I open my .exe I get a message saying No debugger has been found, no Jit Debugger has been specified I can either select retry to find a debugger or click on cancel to forget about the debugger.
If I press cancel, my application launches correctly without any problem.
I would like to make an alarm clock application, however I am having some problems in the brainstorming phase.
My main problem is the fact that I dont know how to ensure the application will be able to calculate the time and thus set off the alarm. For example, when the application is closed, how will the alarm go off?
Ideally I would like to make this app a system startup item, so if the system is rebooted, the application will automatically relaunch - but again, I dont know how to do that.
If the system is sleeping, how can I wake it up? These kind of problems.
Another dilema I have, is if this application is always running, how could I have it go to my taskbar hidden icon menu (the right section of the taskbar next to the time).
I have build a small project in vb.net 2008 and after publishing, when I check from the users machine first it's showing the image for connectivity and showing the image "Launching Application" and then my program is running...So how to display off this first image?
View 2 RepliesWell I just want to make a button that will run the path that is in the textbox I started to add a textbox and a browsing button and than when the path is selected it change the textbox.text to the path name..
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]....
So Yea I just want to make my other button launch the textbox1.text path and open the process...I dont know if I need to sue shell comand but I tryed many thing and did not get anything working
I shipped a VB .NET app to my customer. They installed the app in program files folder. The app starts and everything works ok. Now my customer reports that some intranet TCP/IP connections are interrupted after starting the app. Sometimes they are not available after starting my app, sometimes the intranet connections are still available after my app has been started. After my app has been started, there are connection error messages to their intranet services. After re-starting the machine, they still can't connect to the intranet services. A fix is to login with another user name or re-load the profile from the server after they have been logged in on another machine.
Do you have any ideas where to start further investigations? Is it possible that my .NET app interrupts or blocks intranet connections? Could you recommend any trace tool that gives me a hint when and why the intranet connections are blocked? Why could it work for them after they login on another machine?I am wondering if my .NET app could disable the intranet connections. Do you have any recommendation for testing that?
Just after some quick advise. I have a console application that I've written, its basicly a script that uses arguments passed into it. I have also created a form application which creates pre defined links (.lnk) containing the arguments. I would like these to both be a part of the same exe. So if the are no arguments passed in.
View 7 RepliesI have a .NET application that is shared to around 30 different computers, (mix of 32-bit and 64-bit machines).When compiled, the application is set to target 'Any CPU'.It runs fine on all machines except one that is Windows 7 64 bit.The error message is:
[Code]...
I'm trying to save a Word document into iManage using ImportCmd from IMANEXTLib and I'm getting a new instance of Word every time I run it.I've saved the document to doc1.doc, and then:
'Connects to WorkSite
Dim dmsConnection As IManage.IManDMS = New IManage.ManDMSClass()
dmsConnection.ApplicationName = "My Application"
[code]....
And at this point, I get a new instance of Word, on top of the one I was saving from (ie, on top of Application).
We have an application that self-updates using a Laucher.exe process which copies down new App.exe and DLLs from a server then runs them in a separate process. This was all working very well until the arrival of the Windows 7 taskbar... Problem is in Windows 7, if the user pins the Launcher.exe to the task bar (by right-clicking the shortcut to Launcher.exe) then this happens... When you start the program the "pinned" taskbar icon momentarily gets focus while the launcher is running but then a totally separate new icon appears when App.exe is running. If the user then decides to right click the icon from the running App.exe and pin that to the taskbar, they bypass the application update part of the process.
[Code]...
I would like to launch a command line exe I created. For now it's a test program that writes Hello World to the console. I can launch it, but the shell window it displays it in only stays for a split second.
I know I can add a line to my console mode program (readline). But I would like to control it from the process launch. I will be using console mode programs that I did not write myself, and many of them don't stall the output. I can't find the right properties and methods to control the default shell behavior!
I deployed a VB.Net app and ran it and I get 'AppName has stopped working" "Windows is checking for a solution to the problem" along with a Cancel button under Windows 7. Under XP I am only getting the option to Send the error report to Microsoft or not. There is no apparent way to hook into a debugger. I am not getting any exception data. I have put msgboxes at the very start of my code and they are not hit so it is failing before any of my code is even executing. I have checked all dependencies that I can think of. I developed the app on VS2008 Windows 7 and deploying to Windows 7 and WinXP. I need some advice - how do I debug this?
View 2 Replies