Using third party control to realize QQ vertical menu in VB

Source: Internet
Author: User

Editor's words: After one months of preparation, the third party control recommended today officially started, today's recommended control is provided by the Netizen Wooke, small series here on behalf of all netizens thanked him.

The source code package is a Verticalmenu control, please download the test after the decompression

Use examples:

QQ is one of the software that we often use. I believe we are familiar with the interface of QQ. In this, I recommend a VB can easily achieve this like the QQ vertical menu of Third-party control Verticalmenu.

Here's how you can use the Verticalmenu Control Development Program in conjunction with an instance (development environment for Visual Basic 6.0,windowsxp).

(i) Loading of Verticalmenu controls

Run Visual Basic 6.0 and create a new project. Then select Project (P)-> "Part" in the menu to display the Parts dialog box, as shown in Figure 1.


Figure 1

Click the browse (B) button to locate the Vertmenu.ocx file from the folder where the Verticalmenu control is stored, and add it to the list of available controls. Click the OK button to close the Parts dialog box. The Verticalmenu control appears in the Toolbox. As shown in Figure 2


Figure 2

(ii) Settings for common properties of Verticalmenu controls

Select the Verticalmenu control in the toolbox and place it on the Form1 of the new project. Adjust the size well. As shown in Figure 3


Figure 3

Then click the right mouse button on the control. The Verticalmenu property Page dialog box pops up. As shown in Figure 4


Figure 4

⒈ Property Description:

Menues

Menucur: The menu number that is currently being set (the default ordinal number starts at 1)

Menusmax: Total number of menus

Menustartup: The sequence number of the menu that is displayed by default when the program is run

Menuobjects

Menucaption: The name of the current menu

Menultemcur: The item ordinal that is currently being set (the default ordinal number starts at 1)

Menuitemmax: The number of items in the current menu

Menuitemobjects

Menultemcaption: The name of the current item

Menuitempicture: Icon for current item

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.