Results 1 to 4 of 4

Thread: {resolve}set default value in browse window

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Resolved {resolve}set default value in browse window

    hi all,

    I am using common dialoge box for browse folder. I can open the browse window but i want to set start drive as d or any other particular drive or folder. can anyone help me to do that??

    Thanks,

    sagar
    Last edited by sagarpassion; Sep 28th, 2006 at 11:51 PM.

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: set default value in browse window

    The InitDir Property of the CommonDialog will help you:
    VB Code:
    1. CommonDialog.InitDir = "D:\"
    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: set default value in browse window

    Thanks!! that works fine.

    do u have idea in VB.NET for FolderBrowseDialoge?? I know this is not VB.Net forum but if anyone knows then plz guide me.

    thanks,

    Sagar.

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: set default value in browse window

    Oh dear my brain isn't working tonight.

    EDIT:

    BLAH. Again, my brain isn't working. Just tested it, this should work:
    VB Code:
    1. FolderBrowseDialog.SelectedPath = "D:\"

    chem
    Last edited by chemicalNova; Sep 28th, 2006 at 06:22 AM.

    Visual Studio 6, Visual Studio.NET 2005, MASM

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