如题
解决方案 »
- 就没有人知道timeSetEvent?
- VB 如何从TXT文档中读一个一维数组
- 关于备份和恢复的问题!急,在线等!
- 怎样测试一个文件下载地址有效,在线等
- ListView控件中的列宽自动调整问题?
- 时间算法
- 窗体总在最后层显示,如何实现?
- 编译后的程序执行出错。
- 我下载了utf-8格式的网页代码,保存在一个byte数组中,怎么把这个byte数组转成utf-8格式呢?再问下,vb string类型的是什么格式
- Visual Studio 2008 的十大新特性之一:代码中插入图片并可以被Notepad编辑是如何使用的哇?
- 在线等待,为什么用VB的查找功能查找中文的时候,输入的中文为什么会变成乱,谢谢!
- 有没有什么控件可以象Datagrid那样实现多行记录的输入而又不用数据源就象Delphi里面的StringGrid那样谢谢!
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim frm As Form
For Each frm In Forms
if frm.Name = "Form1" Then
Fg = 1
If frm.Visible Then Fg = 2
end if
Next Select Case Fg
Case 0
msgbox "没有载入!"
Case 1
msgbox "已经载入但隐藏!"
Case 2
msgbox "窗体是显示的哦!"
End Select
if frm.Name = "Form1" Then
...
...
Exit For //这里加一句退出循环,因为找到了相应窗体嘛!
End if