CodeQuick C# Programming

CodeQuick is a C# programming language aid. It features many code snippets to help you code swiftly in C# programming language.


OpenFileDialog allows users to browse folders and select files.


void SelectFile()
{
OpenFileDialog dialog = new OpenFileDialog();

// Optional Settings

dialog.Title = "Select File";
dialog.Multiselect = false;
dialog.Filter = "C# files|*.cs";

if (dialog.ShowDialog() == DialogResult.OK)
{
Console.WriteLine(dialog.FileName);
}
}