Results 1 to 2 of 2

Thread: [RESOLVED] OpenDialog

  1. #1
    Dorothy
    Guest

    Resolved [RESOLVED] OpenDialog

    I need help on populating a combo box with values similar to what one finds in the Look in combo of a OpenDialog?

    Note: I dont wish to use the OpenDialogControl

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: OpenDialog

    Originally posted by Dorothy
    I need help on populating a combo box with values similar to what one finds in the Look in combo of a OpenDialog?

    Note: I dont wish to use the OpenDialogControl
    Like;
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.    Dim sBuff As String
    5.  
    6.  
    7.    sBuff = Dir("C:*.*")
    8.  
    9.    Do Until sBuff = ""
    10.       Combo1.AddItem sBuff
    11.       sBuff = Dir
    12.    Loop
    13.  
    14. End Sub

    Will load a ComBoBox with all files in the Root Directory.

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