By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,207 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,207 IT Pros & Developers. It's quick & easy.

Detect Word is running

P: n/a
How do I detect MS Word is already running?
Feb 1 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 1 feb, 04:35, "Alan T" <alanpltseNOS...@yahoo.com.auwrote:
How do I detect MS Word is already running?
hi
check the process running on OS, and look is anyone is the winword.exe

Feb 1 '07 #2

P: n/a
On Feb 1, 4:29 pm, "Horacio Nuñez Hernández" <hnh12...@gmail.com>
wrote:
On 1 feb, 04:35, "Alan T" <alanpltseNOS...@yahoo.com.auwrote:
How do I detect MS Word is already running?

hi
check the process running on OS, and look is anyone is the winword.exe
Here is a code snippet that may help:
//using System.Diagnostics;
Process p = Process.GetProcessById(nProcessID);
string sProcess = p.ProcessName;

Feb 1 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.