Results 1 to 3 of 3

Thread: Combo and Drives

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Location
    Greece
    Posts
    10

    Combo and Drives

    how can i fill Combobox with Logical Drives when app start(Form_Load)

  2. #2
    New Member
    Join Date
    Dec 2003
    Posts
    12

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Location
    Greece
    Posts
    10

    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
  •  



Click Here to Expand Forum to Full Width