0

Is it necessary to have the "All files" option in the dialogBox. I tried removing it but it won't compile. gives some sort of error

this.saveFileDialog1.Filter =
"Document Files - (*.txt)|*.txt|" +
"All files (*.*)|*.*";

Tried removing the [+ "All file ] onwards string.

this.saveFileDialog1.Filter =
"Document Files - (*.txt)|*.txt|";

gives the same prob. with openFileDialoag.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by shazzy99
0

thanks, just figured it out. was placing an extra char "|" after *.txt

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.