G
Guest
I've conquered a very strange behaviour that I cannot account for logically
and therefore seek help in this Discussion Group. I'm currently developing 2
applications and intend to use the standard open File Dialog with the code
snippet found below.
The code snippet is exactly the same in both applications but the behaviour
is fundamentally different. In one application when you select adifferent
filter from the filter selection group box the content of the file chooser is
refreshed. In the other apllication the after changing the filter results in
an empty set of files in the file chooser. Does anybody knowhow I can achieve
a refreshing of the file chooser content in both applications? Or has anybody
had the same problem?
Thank you for your help.
With best regards
Michael
System.Windows.Forms.OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter="Formular (*.form)|*.form|Locale savings(*.fs)|*.fs|All Files
(*.*)|*.*";
ofd.Title= "Open form";
ofd.Multiselect = false;
ofd.FilterIndex = 2;
ofd.RestoreDirectory=true;
System.Windows.Forms.DialogResult test = ofd.ShowDialog();
and therefore seek help in this Discussion Group. I'm currently developing 2
applications and intend to use the standard open File Dialog with the code
snippet found below.
The code snippet is exactly the same in both applications but the behaviour
is fundamentally different. In one application when you select adifferent
filter from the filter selection group box the content of the file chooser is
refreshed. In the other apllication the after changing the filter results in
an empty set of files in the file chooser. Does anybody knowhow I can achieve
a refreshing of the file chooser content in both applications? Or has anybody
had the same problem?
Thank you for your help.
With best regards
Michael
System.Windows.Forms.OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter="Formular (*.form)|*.form|Locale savings(*.fs)|*.fs|All Files
(*.*)|*.*";
ofd.Title= "Open form";
ofd.Multiselect = false;
ofd.FilterIndex = 2;
ofd.RestoreDirectory=true;
System.Windows.Forms.DialogResult test = ofd.ShowDialog();