Checking To See If Another Program Is Running?
Feb 3, 2010
I have a program that when youpress a button it opens another program then after that it opens a 2nd program. How can get my program to check the system processes and wait until the first program closes before the 2nd one runs?
View 5 Replies
ADVERTISEMENT
Nov 17, 2009
I'm making a new program so I won't be able to post my code here yet.
But I wanted to ask you fine folk how I can check if a program is running for the first time.
[code...]
Just start the program normally and when they click the menubar ask for the password they set in the first time
if it's a little iffy on my side but I just started this project and I've only made the GUI and I have no idea what so ever how to do this.
View 5 Replies
Aug 27, 2009
I just need to check whether a process is running. But I have absolutely no idea where to start!
View 10 Replies
Dec 11, 2011
I need my problem to check if internet explorer 8 is running a website.I'll be more specific. When internet explorer 8 navigates to [URL], an event should be triggered, like pressing a button.The "If" statement is ofcorse needed.
View 4 Replies
Jun 27, 2010
I need to create a program that checks to see if a certain process is running, but I need to check it at a predetermined interval, such as every 10 seconds. I also need it to relaunch the program if it disappears/crashes. I have no idea where to start, I'm assuming I'd have to use a timer and write a method that checks for this process and then another method to simply launch it.
View 3 Replies
Apr 19, 2011
For my Visual BASIC class we were asked to create a project to compute your checking account balance.Included in the project should be three radio buttons (deposit,check, and service charge), one text box (the amount),and a read only text box which will show the new balance. The balance should be calculated by adding deposits and subtracting checks and service charges; Each of these must return an updated balance. If there is not enough money to cover a check,do not deduct the check amount, but charge a service charge of ten dollars. The problem I have continually run into is keeping a running balance without using do or for loops. Here is a copy of the code i have come up with which will display only what I enter into the amount text box and put it into the balance read only text box; it will not accumulate.
Code:
Private DepositTotalDecimal, CheckTotalDecimal, ServiceChargeTotalDecimal, BalanceDecimal, AmountDecimal As Decimal
Private DepositCountInteger, CheckCountInteger, ServiceChargeCountInteger As Integer
Private Sub PrintButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintButton.Click[code]....
View 4 Replies
Oct 16, 2011
I'd like to make my app check for a running process, I know how to make it check for a running process by its name but not by its location.
It would be extremely helpful if someone could solve this issue for me.
View 6 Replies
Mar 2, 2009
I am trying to create a small application that will tell me if a website is up and running. This application will monitor if the site goes down. The problem is that there are several websites sharing the same IP address, and I cannot use ping to monitor it for the same reason. I do not know what type of code can I use to query the availability of the website. I read about webRequest and webResponse but I do not know how to get the response information that will tell me if the site is up or down. The code should be able to tell if a site like "mundo.reporters.com is accessible. That is the only thing.information to point to a potential solution will be more than welcomed.
The server is hosting 8 websites that share the same ip address, and I need to constantly monitor if they are functional.
View 2 Replies
Feb 8, 2012
i face a problem in checking file condition.I wish to create a program that can check the condition file continuously while the program is running.[code]If I suddenly remove the file, it cant show a message File not Exist or if I suddenly receive a file and place at the folder,it cant show me a message File already Exist.How can I modify my code to continuously checking the file condition while the program is running.
View 1 Replies
Nov 29, 2009
This is my
Private Sub Timer1_Timer()
Dim procs() As Process = Process.GetProcessesByName("samp-server")
If procs.Length > 0 Then
[Code]....
Its supposed to start the samp-server.exe if it closes but it doesn't?
View 6 Replies
Jan 4, 2012
I'm developing Applications in VB.NET 2008.
I have MDI Parent Form and i'm going load all form as MDI child. Here i'm going to give option to "Close All" toolstripbutton in top of MDI Parent to close All mdi child forms.
Now i would like to check that On click of Close All Toolstripbutton , i have to close all mdi child form but except those form is on process, example, I have opened/Loaded 5 MDI child forms within MDI Parent Form.
Child forms are ( just for example ) ,
1. Customer details Form
2. Item Details Form
3. Import Orders Form
4. Stock Details Form
5. Production Entry Form
Here 3.Import Orders form is importing from Excel with 5000 records and 4. Stock details form exporting to excel.
So now if i click "Close All" button then i have close only Idle form i.e 1,2 and 5 but i should not close 3 and 4 since its on some process.
So Is there any .NET option to check that form in process/idle or do I have to check manually by having any Flags ?
View 1 Replies
May 5, 2012
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 Replies
Jan 20, 2010
I want to prevent my program from running when it is already running.How can I do that in my vb2008 Code?
View 1 Replies
Feb 15, 2012
i face a problem in checking file condition. I wish to create a program that can check the condition file continuously while the program is running.
For code below that I wrote:
Private Sub StartTracking_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]....
It just can check the file condition only once, that this is only the program first load.
If I suddenly remove the file, it can't show a message " File not Exist" or if I suddenly receive a file and place at the folder, it can't show me a message "File already Exist"
View 11 Replies
Feb 8, 2012
i face a problem in checking file condition. I wish to create a program that can check the condition file continuously while the program is running.
For code below that I wrote:
Private Sub StartTracking_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code].....
View 4 Replies
Jun 6, 2012
I wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.
View 5 Replies
Oct 10, 2011
have you of any ideas in why does my software in vb 2010 still exist in the task manager (process tab), after i closed the program? i noticed it when i want to delete the .exe file.
View 10 Replies
May 1, 2009
I want to create a program that will run every start of computer and will check if it is 9:00 AM and can only be seen at the bottom right cornner besides the clock. When the program executes must show an notification that the program is running.
View 4 Replies
May 5, 2012
I've rearranged the error messages to different spots with no luck. The txt row need to be a number 1 to 10. The txtSeat need to be A,B,C, or D and the txtPassenger shouldn't be left empty.
Public Class Form1
Dim seat(9, 3) As String
Dim waitingList(9) As String
Dim passengerNames(9, 3) As String
[code]....
View 8 Replies
Jul 23, 2009
I'm making a simple app that checks if Windows Media Center is open, if it is open and the program receives the close command from windows, make my application shut down the computer. I was wondering if this was the most efficient way of doing this:
[Code]...
View 6 Replies
Sep 21, 2010
I wrote code for checking whether a particular process (Outlook.exe, in my case) is running or not. It is working fine when the Outlook window is open or minimized. But, when the Outlook is minimized to tray (which on the right side of taskbar), my code is not identifying the process.Could anyone please suggest me a way to get the process of Outlook (or any other program) that is minimized to tray?
View 2 Replies
Apr 16, 2010
A long time ago, on a PC far, far away from Windows, one MS-DOS program (the father) could run / execute / spawn another MS-DOS program (the son). When the son terminated, it could set a return code which could certainly be interrogated by an MS-DOS batch program or, I think, by any father program that invoked it (depending on the language in which that program was written). I have a small utilility which I want to invoke from my application, and, since that utility sets a return code, I would like to interrogate it in my application when the utility terminates. I've looked through the MSDN Library but could not find anything that seemed to cover this situation. Is there a way to do this in Visual Basic 2008 Express
View 2 Replies
Dec 6, 2009
FIRST = arguments checked against each other
SECOND = arguments checked against each other but are irregardless of the FIRST arguments.
If (FIRST and (FIRST or (FIRST and FIRST))) OR (SECOND or (SECOND or SECOND or (SECOND and (SECOND or SECOND)))) then As the program processes this line over a million times during the execution, only FIRST or SECOND section is needed during an execution, never both. How do I make the program use only the section that's needed for the current execution instead of checking every argument every time? Is there a way to turn a string into an argument list for an IF...THEN statement? [code]
View 13 Replies
Apr 16, 2011
Basically what I want to do is create a program that every now and then (maybe 10 minutes) switches between either, all the windows currently open, or a selection of all the windows currently open, then checks the colour of a location on the screen. At the moment I have the program checking the colour at a specific coordinate, so that's all good. The problem I have now is how to switch between windows.
I've thought up a few ways to do this. The windows that I care about checking all have the same name, the same process class, but different process IDs. I already managed to stick all the process IDs into an array of integers hoping that I could use them but I don't have a clue how to bring a window to front using just the process ID. So the first method would work if I could figure out a way to do that.
My second idea, which is a pretty rubbish way of doing it, would be to simply simulate pressing Alt+Tab however many times to change between windows.
View 4 Replies
Aug 4, 2010
Is there any better performance by checking for a true value like this:
[CODE]..............
Than like this:
[CODE]..............
View 5 Replies
Oct 12, 2011
I had the battle system 60% worked out. Went to play some Dragon Age, when I came back nothing was working as the way I left it. I don't know what happened.The richtext box is supposed to disaply the attack monster description, and then it's name, the amount of damage it does. I had it so that I could attack, be attacked, and display damage, and attack discription of both player and monster. when I opened my project to work on it again, hardly anything was working right.[code]
View 9 Replies
Apr 26, 2011
im a wrtiting a simple vb.net problem that when a button is clicked it launches the command prompt.all i need it to do is open cmd on a buttonclick. i have used [code]this works fine if i substitute iexplore.exe for cmd.exe but when i try to run cmd i get an error message below.
View 1 Replies
Sep 11, 2009
I am writing a program (that i have recieved a lot of help with) that creates input files for another program. The bridge between the two programs is a program that has been named the task manager as like the windows task manager it shows what tasks are being done/have been done/are about to be done (or executed)
What i would like to know is how can i run the already installed bridge program from my program? Do i need to run it by opening the executable that contains it? Or by declaring the bridge program as a type/structure/class and going from there to open it?If you're not living on the edge, you're taking up too much room
View 2 Replies
Jan 21, 2010
we have this situation, we need to 'force' user to do stock opname at specified time, so when the time has arrived..the stock opname program will run while their current running is'freeze' until the opname is done..
View 10 Replies
Sep 5, 2011
How do I best speed up running of my program?Once I have simplified code as much as possible, made it smaller. By using loops were appropriate etc.
View 7 Replies