VB.NET savefildialog Question
Is there an easy way to dynamically change the extension attached to the file name when a user changes the "save as" file type?
When the user changes the save type from the default ".txt" to ".csv" the filename remains [I]filename[/].txt rather than the expected filename.csv
.FileName = label1.Text & ".txt"
.DefaultExt = ".txt"
.FilterIndex = 1
.Filter = "TXT File (*.txt)|*.txt| CSV File (*.csv)|*.csv|"
Thanks in advance.