可以使用FindWindow API函数,设为以窗口标题字符串识别,很好用

解决方案 »

  1.   

    如果hide那?这个时候已经加载,但是无法找到而且和.net不同,虽然窗体是一个类,但是实际上并没有当作类来看!
      

  2.   

    if form1.visible=true then
    *******
    end if
      

  3.   

    不行!
    如果调用visible属性,窗体即使没有加载,也会这时加载的.
    这样可以吧:
    dim f as form 
    for each f in forms
    if f.caption="myfindform" then 
    msgbox "找到"
    else 
    msgbox "在哪里呢?"
    end if