vb6search-form

Can I search for an object by its name within a form in VB6?


As declared in the title, for example, I want to search for a button whose name is button8, within a form where there are so many buttons that I do not want to check the name one by one.

Can I do this in VB6?


Solution

  • Here's how to find a control in the form designer, if you know the name.

    Go to the form designer, open the property window (press F4), and use the dropdown to choose the control. This shows the properties in the window (and you can edit them). It also selects the control onscreen.