Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what api call and/or constants do I use..........

Status
Not open for further replies.

Exo

Technical User
Mar 25, 2003
3
US
what api call and/or constants do I use to get the name and handle of controls on a specific form? thx in advance becuase I don't have any idea where to start.&nbsp;&nbsp;thx once again.<br>exo
 
dim ctl as control<br>for each ctl in form1.controls<br>&nbsp;&nbsp;&nbsp;debug.print ctl.name<br>next<br><br>You can use the hwnd property to get the window handle of a control,&nbsp;&nbsp;but not every control has a hwnd property, so your code will need to be able to deal with that.<br> <p>nick bulka<br><a href=mailto: > </a><br><a href= </a><br>Get your technical books at Bulka's Books<br>
 
the scenario that I am dealing with is getting the handle of controls on programs written in any other language.&nbsp;&nbsp;For example: I know I can use the API to get a list of all running windows, but can't get it to work any other way.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top