How to close IE winodws using vb program?

luye 2000-05-29 11:44:00
I want to make a vb program. If there are IE windows opening in the desktop, this program can automatically find these ie windwos and close them. But I don't know what API function can be used to close IE windows.
Once I tried SendMessage function. But I found that SendMessage can close NotePad windows and can't close IE windows.
Who knows the answer, please help me.
...全文
89 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
luye 2000-05-29
  • 打赏
  • 举报
回复
Hi, TopHead,
Thanks for your help. I tried PostMessage and succeed.
Now, I have another question, how can i know the opening windows amount in VB? Is there window array?
TopHead 2000-05-29
  • 打赏
  • 举报
回复
我也不知道为什么用Sendmessage函数对IE不行,可以将此函数换成PostMessage即可,我刚试过的。

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧