Skip to content

Commit 477f127

Browse files
committed
FileDialog changes:
added InitialDirectory property; added possibility to change disk (C:/, D:/, E:/ and etc) from textBox; fixed NullReferenceException when button 'Up' was pressed while in the top folder.
1 parent 72021f7 commit 477f127

File tree

3 files changed

+126
-77
lines changed

3 files changed

+126
-77
lines changed

Examples/Panels/PanelFileDialog.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public override void Initialize()
1919
{
2020
var ofd = new OpenFileDialog();
2121
ofd.Filter = textFilter.Text;
22+
ofd.InitialDirectory = "C:\\";
2223
ofd.ShowDialog(
2324
(form, result) =>
2425
{

0 commit comments

Comments
 (0)