首页 文章

如何使列表框像Access中的组合框一样下拉

提问于
浏览
0

在Access 2007如何使列表框下拉像组合框而不将其更改为组合框类型,因为它具有多选属性,我需要在我的表单上保存一些空间是可能的?

1 回答

  • 1

    如果ListBox下有足够的空间,请尝试格式化 - >转到前面并分配事件

    Private Sub MutantListbox_GotFocus()
    
        MutantListbox.Height = MutantListbox.Height * 10 ' it waz 1 line become 10
    
    End Sub 
    
    Private Sub MutantListbox_LostFocus() 
    
        MutantListbox.Height = MutantListbox.Height / 10 ' it waz 10 line become 1
    
    End Sub
    

相关问题