By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

How do I check how many windows are opened in Windows at the moment.

P: n/a
I want to write a VB.NET application to display current running applications
and total number of windows opened, however, I don't know how to start this
project. Can anyone give soem hints? Do I have to win32 functions?

Thanks,

Kai
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Kai,
I want to write a VB.NET application to display current running
applications and total number of windows opened, however, I don't know how
to start this project. Can anyone give soem hints? Do I have to win32
functions?


Yes, I am curious, is there a reason that you want to check that?

Cor
Nov 21 '05 #2

P: n/a
Kai,

"Kai Zhang" <ka*******@zeron.biz> schrieb:
I want to write a VB.NET application to display current running
applications and total number of windows opened, however, I don't know how
to start this project. Can anyone give soem hints? Do I have to win32
functions?


Yes, you can use p/invoke with 'EnumWindows'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
Not really a serious reason. I just want to write a program to automatically
turn off the machine after all the applications and windows are shut down,
so I don't need to wait during the machine shutting down:').

BTW, my machine is S L O W.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OC*************@TK2MSFTNGP15.phx.gbl...
Kai,
I want to write a VB.NET application to display current running
applications and total number of windows opened, however, I don't know how
to start this project. Can anyone give soem hints? Do I have to win32
functions?


Yes, I am curious, is there a reason that you want to check that?

Cor

Nov 21 '05 #4

P: n/a
Thanks Herfried, I am not fully following what you suggested, but I will
Google "use p/invoke with 'EnumWindows'".
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Kai,

"Kai Zhang" <ka*******@zeron.biz> schrieb:
I want to write a VB.NET application to display current running
applications and total number of windows opened, however, I don't know how
to start this project. Can anyone give soem hints? Do I have to win32
functions?


Yes, you can use p/invoke with 'EnumWindows'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.