'1、类名IEWindows
Private WithEvents winShell As SHDocVw.ShellWindows
Public Event IEWindowRevoked()Private Sub winShell_WindowRegistered(ByVal lCookie As Long)
Refresh_Col
Do While bRefreshing
DoEvents
Loop
RaiseEvent IEWindowRegistered
End SubPrivate Sub winShell_WindowRevoked(ByVal lCookie As Long)
Refresh_Col
Do While bRefreshing
DoEvents
Loop
RaiseEvent IEWindowRevoked
End Sub
'在一个form1窗体中
Private Sub Form_Load()
Set IEWin = New IEWindows
End Sub不知道为什么老是winShell_WindowRegistered事件中运行,
导致cpu资源占用99%
但有不是每次打开窗口都会,如果打开新窗口的速度快,就很容易出现这问题
是不是那里没有释放,还是怎么回事?
Private WithEvents winShell As SHDocVw.ShellWindows
Public Event IEWindowRevoked()Private Sub winShell_WindowRegistered(ByVal lCookie As Long)
Refresh_Col
Do While bRefreshing
DoEvents
Loop
RaiseEvent IEWindowRegistered
End SubPrivate Sub winShell_WindowRevoked(ByVal lCookie As Long)
Refresh_Col
Do While bRefreshing
DoEvents
Loop
RaiseEvent IEWindowRevoked
End Sub
'在一个form1窗体中
Private Sub Form_Load()
Set IEWin = New IEWindows
End Sub不知道为什么老是winShell_WindowRegistered事件中运行,
导致cpu资源占用99%
但有不是每次打开窗口都会,如果打开新窗口的速度快,就很容易出现这问题
是不是那里没有释放,还是怎么回事?
解决方案 »
- 救急!!!安装VB6.0运行不了
- 哎呀呀~VB区人气不行啊..我来散200,顺便让大家清理下肠胃..(心理强的进,MM最好不要进)
- 高分求mo创建铁路线模型代码,各位大侠帮帮忙!!!
- VB中子报表如何设计?
- (好久没有问了)如何修改Windows XP 的注册表,使用户不能修改ip?
- 文本框绑定到adodc1的一个字段上,然后我修改文本框的值,为什么数据库中的字段不能更新
- 急求vb6.0用ADODC连接access 数据库后,删除所有数据记录的方法!?
- 高手来帮帮我啊~~着急啊~~
- 关于目录的操作
- 这段程序有错吗?
- 哪个 API 可以判断指定的文件是否已共享
- 搜了好久,急求,vsflexgrid能够根据输入自动增加某行的行高,谢谢
DoEvents
Loop
bRefreshing是什么来的?