Use of the VB6 Object Browser

Source: Internet
Author: User

It is estimated that many books have ignored this powerful tool. You can open the Object Browser by pressing F2 in the VB6 IDE, or by selecting the Object Browser menu item in the View menu. Object Browser as shown in figure:


Can see the above image contains red, blue, orange, yellow, green Five colors of the box, the same color inside the word indicates their use (here no one color blindness it.) ), there are several buttons next to the list and search, which I labeled ① to ⑤. I explain the purpose of each of them individually.

Select Library: After creating the Standard EXE, a few DLLs are loaded by default, and you may not feel that, but all of the original functions that you call, the default controls that you create are provided by them. You can also choose to load other ActiveX DLLs or ActiveX controls by using the References dialog box (the control itself can be thought of as a class object, and the OCX file can also be viewed as a library as a DLL file). But there is a part of the DLL if you choose him, the IDE will crash, specifically what reasons I do not know, know the welcome to tell me some.


Search: input function, or constant, or enumeration, or ... Name, click the ⑤ button to search. After clicking the search results displayed in the Search Results box, the following image purple box:


Like the ⑥ button in the first picture (the one next to the search button), when you look at the previous picture, the button changes, and that button is the button that controls whether the search Results box is displayed or hidden.


After selecting the library (or not the selection is all), you can see the first picture Orange Box "class list" and the Right Green box "class member list" Changes, the class list shows the current selection of the library members, there are many icons in this list, each icon has its meaning, the following lists:


It is necessary to note that the enumeration is globally common wherever it is declared, so it does not appear in the list of class members, but instead appears in the class list.


When you click an item in the class list, the members of the item are displayed in the class member list. The "Class members List" Item also has many icons, each of which is listed below:

You can click on the "Class member list" item and you will see his description in the "Class member description" box. If you clicked a function, the declaration of the function is displayed in the box "class member description". If you clicked on a property, the declaration of the property is displayed in the box for class member description, and so on. This will help you understand the invocation methods of the structure and functions of the class.


And then I'll talk about the ① to the ④ of the four buttons. Where ①② is a group of navigation buttons, ① navigates backwards, but navigates forward. What do you mean, for example, you clicked on a picture object like this before and then clicked on the form object to see, now you want to go back to the picture class object immediately to see what you have seen before, you can use backward navigation, instead, after you navigate backwards, read, If you want to go back to the form again, you can navigate forward.


③ is copied to the Clipboard, which is actually a copy, and he can copy the name of the class you are currently selecting, or the name of the member of the class to the Clipboard, which is the "Class list" and "Class member list" content you can copy. The last ④ is to go to the definition and must have the source code of the current library to use.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.