以下是引用Bin在2013-5-25 16:34:00的发言:
放在BeforeOpenProject事件中
dim count as integer = 0
Dim sProcesses As System.Diagnostics.Process()
sProcesses = System.Diagnostics.Process.GetProcesses()
For Each pr As System.Diagnostics.Process In sProcesses
If pr.ProcessName = "foxtable" Then
count=count+1
End If
Next
if count>1 then
messagebox.show("你已经打开了一个项目")
Syscmd.Project.exit()
end if
出现错误啊,
.NET Framework 版本:2.0.50727.5477
Foxtable 版本:2014.8.6.1
错误所在事件:
详细错误信息:
未将对象引用设置到对象的实例。