简体   繁体   中英

Multilevel Combo box in vb6

I am trying to create a multilevel combobox in vb6 similar to that seen in the attached image. This box will be used to select values and then save same to an access database (any insights into how I would design this aspect of the database is welcomed) an. I have been searching for a method to do this, but I have not found any up to this point. Any help would be appreciated.

在此输入图像描述

This looks like a Popup menu that was bounded to the ComboBox click event

This link demonstrates how to create a popup menu programmatically

And If you're working with VB6, just hit CTR+E, and follow these instructions

After configuring the Popup menu, all you're left to do is:

Private Sub ComboBox1_Click()
    Call popupMenu.ShowPopupMenu
End Sub

And make sure all the menu functions sets the Text property of of ComboBox1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM