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