I created a filter with this code:
saveFileDialog1.FileName = "SimplifiedLog";
saveFileDialog1.Filter = "RichTextFormate | *.rtf |Text Files | *.txt |All Files| *.*";
saveFileDialog1.Title = "Save Simplified KL File";
saveFileDialog1.ShowDialog();
The problem is that every time I select a filter (other than the selected one), it adds the extension in the previous one. See the picture below:
source
share