Results 1 to 3 of 3

Thread: Question on controls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Posts
    20

    Question on controls

    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

  2. #2
    Si_the_geek
    Guest
    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:
    1. for each ctrl in <formname>.controls
    2.   msgbox ctrl.hwnd
    3. next ctrl

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What do you want the handles of all the controls on your form for?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width