Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我正在使用 vb.net 创建 word 文档。如果我关闭应用程序并再次运行并打开同一个文档..但是文档已经打开,如何检查 word 文档是否已经打开.. ?
尝试这个:
Dim p() As Process = Process.GetProcessesByName("WinWord") If p.Count = 0 Then ' No word instance opened Else ' Any Word instance opened End If