×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

FolderBrowserDialog.InitialDirectory property is not shown

FolderBrowserDialog.InitialDirectory property is not shown

FolderBrowserDialog.InitialDirectory property is not shown

(OP)
Colleagues,
I use the Dialog in subject to let the User select an output dir for files. I want the initial dir shown in this dialog to be a certain one. Here's the article in the MS VS Help:
"FolderBrowserDialog.InitialDirectory Property

Namespace: System.Windows.Forms

Assembly: System.Windows.Forms.dll

Gets or sets the initial directory displayed by the folder browser dialog.
C#

public string InitialDirectory { get; set; }

Property Value String

Applies to
Product Versions
Windows Desktop 6, 7 RC 1
"
(https://learn.microsoft.com/en-us/dotnet/api/syste...)

However, when I start typing the dialog's name an put in a dot, the InitialDirectory property isn't shown!



As you can see, there's only one "Initial" property shown in the drop-down "cheat-sheet", and it's not InitialDirectory!
What am I missing?
Please advise!
TIA!

Regards,

Ilya

RE: FolderBrowserDialog.InitialDirectory property is not shown

Quote (IlyaRabyy)

Applies to
Product Versions
Windows Desktop 6, 7 RC 1

The above is your problem. You are quoting documentation for Windows Desktop 6, which requires .Net 6. And technically .NET 6 is not compatible with VS19 (which I believe is what you are using)

RE: FolderBrowserDialog.InitialDirectory property is not shown

(OP)
Colleagues,
The problem was resolved by assigning the Dialog's SelectedPath property before firing ShowDialog method.

Regards,

Ilya

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close