I'm programming a simple Winforms program which uses a browse button that allows a user to select a file using OpenFileDialog() however the file explorer that is shown is highly pixelated/low in resolution. Looking through the OpenFileDialog properties yielded nothing that could help except a possible property called AutoUpgradeEnabled however this seemed to do nothing to the resolution.
The problem is not major however it makes the program look less professional and as I have seen similar browsing functions working with better resolution on other programs, I know that it is possible to provide a explorer option with higher resolution (however this may be with other programming languages).
The current code I'm using to get the file name is as follows:
public static string GetFile(string path) {
OpenFileDialog fileExplorer = new OpenFileDialog();
fileExplorer.Multiselect = false;
fileExplorer.InitialDirectory = path;
if (fileExplorer.ShowDialog() == DialogResult.OK) {
return fileExplorer.SafeFileName;
}
}
The screen on which I am viewing this has a high DPI with a 1980x1080p screen and I am currently on a Windows 10 Machine - Update 1809.
A picture showing the clear contrast between standard (right) and the Winforms version (left)