Im wounder how would I find the name for a window and place the name in a textbox
EX: The form will look for all the window name running an paste all the names in the textbox1
I looked on google theres only VB6 O.o
How would I do this?
-Thanks
Printable View
Im wounder how would I find the name for a window and place the name in a textbox
EX: The form will look for all the window name running an paste all the names in the textbox1
I looked on google theres only VB6 O.o
How would I do this?
-Thanks
Look under the Processes (or Process I forget which) and you will find something like GetProcesses.
Then make a For Each loop through them and there is a .GetProcessName attribute (once again it may be different, I don't remember exact name) that will give you the title of the window, if there is one.
I'd give you more specifics but I don't have time to find the exact names.
What exactly do you mean by "window name"? Are you looking for the same list as you find in the Applications tab of the Task Manager? If so then you'll want MainWindowTitle rather than ProcessName, which is what you see in the Processes tab of the Task Manager.
My mistake, that's what I get for being up late...
I meant get the process of the window and then use GetMainWindowTitle, thanks for the correction jmc