I need to loop through all the controls on a form and obtain the handles for the controls could anyone help with this
Pretty easy for some still a newbie:)
Printable View
I need to loop through all the controls on a form and obtain the handles for the controls could anyone help with this
Pretty easy for some still a newbie:)
I'm assuming you mean one of the forms in your program, in which case the following should do for you (if not I can't help you I'm afraid :( )
VB Code:
for each ctrl in <formname>.controls msgbox ctrl.hwnd next ctrl
What do you want the handles of all the controls on your form for?