john_zakaria
Member
- Joined
- Jan 9, 2011
- Messages
- 7
- Programming Experience
- Beginner
hi everyone
now icheck if program is running or not using this code
all that i need is to be sure that the program is closed before taking my action and shows for the user that the program AIM is already running. you must close it before completing (OK,Cancel)
and after pressing ok i will put my fuction
for example:
when you install the photoshop and the program is already running it shows for you that the program is already running. you must close it before completing (OK,Cancel)
and after clicking OK .. the program will compltete instalation
now icheck if program is running or not using this code
VB.NET:
Dim pname() As Process = Process.GetProcessesByName("AIM")
If (pname.Length = 0) Then
MessageBox.Show("nothing")
Else
MessageBox.Show("run")
End If
all that i need is to be sure that the program is closed before taking my action and shows for the user that the program AIM is already running. you must close it before completing (OK,Cancel)
and after pressing ok i will put my fuction
for example:
when you install the photoshop and the program is already running it shows for you that the program is already running. you must close it before completing (OK,Cancel)
and after clicking OK .. the program will compltete instalation
Last edited by a moderator: