VB中的Direr listbox怎么加载的,而且是有下拉列表的

2025-01-18 18:52:21
推荐回答(1个)
回答1:

代码:Private Sub Combo1_Click()
With Dir1
.Path = Combo1.Text
End With
End SubPrivate Sub Form_Load()
With Combo1
.AddItem "C:\", 0: .AddItem "D:\", 0: .AddItem "E:\", 0: .ListIndex = 0
End With
End Sub