CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Posts
    11

    Browse button command

    How to make a browse button command and loads the path to a textbox ? Please help.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Browse button command

    Use Common Dialog control

    Private Sub cmdBrowse_Click()
    dlg.ShowOpen
    txtFile = dlg.FileName
    End Sub



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Apr 2000
    Posts
    737

    Re: Browse button command

    if u only need to get the directory instead of filename, then try http://vblib.virtualave.net, there is a function called BrowseForFolder in vbGeneralControl class.

    HTH


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

Featured