ウィンドウのキャプションを指定してウィンドウハンドルを取得します。そのハンドルが0でなければそのウィンドウは存在している事になります。
Private SubForm_Load()
DimhWndAs Long
hWnd = FindWindow(vbNullString, Me.Caption)
IfhWnd = 0Then
Else
MsgBox "起動されています"
End If
End Sub
'----------------------------------------------------------
'
'----------------------------------------------------------
Public Declare FunctionFindWindowLib"user32"Alias"FindWindowA"(ByVallpClassNameAs String, ByVallpWindowNameAs String)As Long
DownLoad vbtips074.lzh 2KB (VB6.0)