|
-
Dec 20th, 2003, 07:16 PM
#1
Thread Starter
New Member
Combo and Drives
how can i fill Combobox with Logical Drives when app start(Form_Load)
-
Dec 20th, 2003, 07:18 PM
#2
New Member
That's the way...
Private Sub Forn_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim drives() As String
drives = Directory.GetLogicalDrives
Dim iDrive As Integer
DrivesList.Items.Clear()
On Error Resume Next
For iDrive = 0 To drives.GetUpperBound(0)
DrivesList.Items.Add(drives(iDrive))
Next
DrivesList.SelectedIndex = 1
End Sub
-
Dec 21st, 2003, 06:21 AM
#3
Thread Starter
New Member
Resolved
Thanks that work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|