How can I add a horizontal scrollbar to a VBA ListBox

后端 未结 6 1057
星月不相逢
星月不相逢 2021-01-14 00:49

I\'d like to add a horizontal scrollbar to a VBA ListBox.

It appears that the built in ListBox does not add a horizontal scrollbar automatically. I have a number of

6条回答
  •  逝去的感伤
    2021-01-14 01:21

    In Visual Studio 2017, you can click on the list box, then go to the properties panel, and then (scroll down to) find the 'HorizontailScrollbar' property. By default this is property is set to false, so you should set it to true.

    You know you have set the scroll bar properly when a small triangle appears in the top right corner of the list box.

    Hope this helps.

提交回复
热议问题