Urgent
-
I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working
-
I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working
-
I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working
-
I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working
FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; }
-
FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; }
Just repasting the question isnt a sufficient answer... :doh:**
How xacc.ide transforms text to colored words on the screen
Intel PentuimM (aka Centrino) undervolting**
-
I have written the code like for ShowNewFolderButton = false DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false; if( result == DialogResult.OK ) { txtFileName.Text = folderBrowserDialog1.SelectedPath; } //folderBrowserDialog1.ShowNewFolderButton = false;// This line of code is not working
Shiv5 wrote:
DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false;
ShowDialog
halts the running of the current code until the user closes the opened dialog form. Therefore, settingShowNewFolderButton = false
after this line will definately not affect that property when the window is shown! It will set that property AFTER the window is closed. Swap those two lines around.folderBrowserDialog1.ShowNewFolderButton = false; DialogResult result = folderBrowserDialog1.ShowDialog();
That said, I also remember reading somewhere that this property does not have any affect on Windows 2000. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour -
Shiv5 wrote:
DialogResult result = folderBrowserDialog1.ShowDialog(); folderBrowserDialog1.ShowNewFolderButton = false;
ShowDialog
halts the running of the current code until the user closes the opened dialog form. Therefore, settingShowNewFolderButton = false
after this line will definately not affect that property when the window is shown! It will set that property AFTER the window is closed. Swap those two lines around.folderBrowserDialog1.ShowNewFolderButton = false; DialogResult result = folderBrowserDialog1.ShowDialog();
That said, I also remember reading somewhere that this property does not have any affect on Windows 2000. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour