I must be missing something...
This is my code:
OpenFileDialog o = new OpenFileDialog();
o.Filter = "SQL Server Compact Edition Database File|.sdf";
o.ShowDialog();
In the actual folder there is definitely a .sdf file:
And then in the file picker (the same folder) it doesn't show it:
Is it because it only works for certain types of files or something?
I suspect you're just missing the *
wildcard in the matching part:
o.Filter = "SQL Server Compact Edition Database File|*.sdf";