Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


check if program is running and shows a prompt


check if program is running and shows a prompt

Author
Message
john_zakaria
john_zakaria
Forum God
Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)Forum God (4.1K reputation)

Group: Forum Members
Posts: 10, Visits: 17
hi everyone



now icheck if program is running or not using this code



Process[] pname = Process.GetProcessesByName("AIM");

if (pname.Length == 0)

MessageBox.Show("nothing");

else

MessageBox.Show("run")





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

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search