我还想知道,能不能不用
If App.PrevInstance Then
MsgBox "该程序已经运行!", vbInformation
end
End If
而是
If App.PrevInstance Then
‘把之前已经打开的程序提到最前面来。不知怎么实现。难道要用findwindow吗?
end
End If
private sub from_load()
If App.PrevInstance Then
MsgBox "该程序已经运行!", vbInformation
end
End If
end sub
或者
sub main()
If App.PrevInstance Then
MsgBox "该程序已经运行!", vbInformation
end
End If
end sub