View Single Post
Old Mar 26th, 2007, 8:57 AM   #2
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 242
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
I have an idea for you, here is what I would do.

Since your listview contains a collection of all open windows already, why not also have your listview store each window's handle in the item tag like so.

vbnet Syntax (Toggle Plain Text)
  1. ListView1.Items(i).Tag = 'code to get the handle here, i is the index

now, when a user clicks on the listview item, retrieve that item's tag(the corresponding window handle), and then put the value in whPoint.

I believe this is what you wanted to know but maybe that is not where you were having the trouble? let me know.

good luck
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote