V
Vivek Srivastav
Hi windowsform gurus,
I am struck with a minor problem. The folder browse button, when pressed
opens an empty blank panel with only the description.
What am I doing wrong? Following is the code:
private void btnOpenDir_Click(object sender, System.EventArgs e)
{
folderBrowserDialog = new FolderBrowserDialog();
folderBrowserDialog.Description = "Select JBoss Home Directory";
folderBrowserDialog.ShowNewFolderButton = false;
folderBrowserDialog.RootFolder = Environment.SpecialFolder.MyComputer;
if(folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
this.tbDir.Text = folderBrowserDialog.SelectedPath;
}
}
I would really appreciate any help.
regards
vivek
I am struck with a minor problem. The folder browse button, when pressed
opens an empty blank panel with only the description.
What am I doing wrong? Following is the code:
private void btnOpenDir_Click(object sender, System.EventArgs e)
{
folderBrowserDialog = new FolderBrowserDialog();
folderBrowserDialog.Description = "Select JBoss Home Directory";
folderBrowserDialog.ShowNewFolderButton = false;
folderBrowserDialog.RootFolder = Environment.SpecialFolder.MyComputer;
if(folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
this.tbDir.Text = folderBrowserDialog.SelectedPath;
}
}
I would really appreciate any help.
regards
vivek