# CWW 教我的 .... 人帮助我...我帮助人

Posted by 刘树楷 on May 03, 1999 at 21:54:50:

In Reply to: 如何得知某个表单是否正在执行中.. posted by Rong on May 02, 1999 at 01:52:00:

: 如何得知某个表单是否正在执行中..

如已编译成 EXE 可用 App.PrevInstance

如还在 VB 编译中可用

Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

If FindWindow(vbNullString, Your_Window_Title) = Null Then
表单尚未执行
Else
表单已在执行中
End if

可到这里 Download 我的程式看看
当表单已执行, 如用者再 Run Program, 1) Program 不再 Re-Load 多次...而且打开之前之表单 (Maxmize Form)

http://www.asiaonline.net/~jackylau

- Web Cat Off-Line Browser

Follow Ups: