I have this code, how can I allow it to accept all typical image formats? PNG, JPEG, JPG, GIF?
Here\'s what I have so far:
public void EncryptFile()
In order to match a list of different categories of file, you can use the filter like this:
var dlg = new Microsoft.Win32.OpenFileDialog() { DefaultExt = ".xlsx", Filter = "Excel Files (*.xls, *.xlsx)|*.xls;*.xlsx|CSV Files (*.csv)|*.csv" };