Results 1 to 4 of 4

Thread: File And/Or Path Name Entry

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Cool

    I used to use the Drive1, Dir1 and File1 control from VB3 onwards. But frankly speaking, they are ugly.

    Do anybody can tell me how I can use the same screen as the normal ...File...Open option, as we see in MSWord or so.

    If possible, will it be a control, so that I just pass in parameters?

    Thanks


  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    That is the "Microsoft Common Dialog control". Add a reference to the control in your project. Place one on the form, and happy coding.
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Thumbs up

    I tried the common dialog, so far if I am getting a file name is OK, but how about I only want to have the path name

  4. #4
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    To get the path from a file name string.

    Code:
    strFilename = "c:\iain\iain\iain.txt"
    MsgBox Left$(strFilename, InStrRev(strFilename, "\"))
    Iain, thats with an i by the way!

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