how can I open a specific folder... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

how can I open a specific folder...

how can I open a specific folder from a vb application? I am using the common dialog but I can not find the right property.
if it is easy for you give me an example!
thank you!

Comments

  • kel1981bkel1981b Posts: 852Member
    : how can I open a specific folder from a vb application? I am using the common dialog but I can not find the right property.
    : if it is easy for you give me an example!
    : thank you!
    :
    :
    [code]
    With CommonDialog1
    .CancelError = True
    .InitDir= "C:Test" 'folder to be opened
    .FileName = ""
    .Filter = "TXT files (*.txt)|*.txt"
    .ShowOpen
    strFileName = .FileName
    End With
    [/code]
  • vbdeveloper1vbdeveloper1 Posts: 6Member
    : : how can I open a specific folder from a vb application? I am using the common dialog but I can not find the right property.
    : : if it is easy for you give me an example!
    : : thank you!
    : :
    : :
    : [code]
    : With CommonDialog1
    : .CancelError = True
    : .InitDir= "C:Test" 'folder to be opened
    : .FileName = ""
    : .Filter = "TXT files (*.txt)|*.txt"
    : .ShowOpen
    : strFileName = .FileName
    : End With
    : [/code]

    thank you!
    :

Sign In or Register to comment.