OpenFileDialog.Title : OpenFileDialog « System.Windows.Forms « C# / C Sharp by API
- C# / C Sharp by API
- System.Windows.Forms
- OpenFileDialog
OpenFileDialog.Title
using System;
using System.Windows.Forms;
public class MainClass
{
[STAThread]
public static void Main()
{
OpenFileDialog dlgOpen = new OpenFileDialog();
dlgOpen.Title = "Select one or more files";
dlgOpen.ShowReadOnly = true;
dlgOpen.Multiselect = true;
if (dlgOpen.ShowDialog() == DialogResult.OK)
{
foreach (string s in dlgOpen.FileNames)
Console.WriteLine(s);
}
}
}
Related examples in the same category