D
Du Dang
I want to get all the instances of FolderBrowserDialog in a form
programmaticly
I tried to loop through the Components in the form but I still couldn't pick
it out
foreach (Component com in this.components.Components){
if (com is FolderBrowserDialog){
FolderBrowserDialog fb = com as FolderBrowserDialog;
rchtxtOutput.Text += fb.SelectedPath + "\r\n";
}
else {
rchtxtOutput.Text += com.ToString() + "\r\n";
}
}
any ideas???
Thanks,
Du
programmaticly
I tried to loop through the Components in the form but I still couldn't pick
it out
foreach (Component com in this.components.Components){
if (com is FolderBrowserDialog){
FolderBrowserDialog fb = com as FolderBrowserDialog;
rchtxtOutput.Text += fb.SelectedPath + "\r\n";
}
else {
rchtxtOutput.Text += com.ToString() + "\r\n";
}
}
any ideas???
Thanks,
Du