FileNameEditor Class
Provides a user interface for selecting a file name.
For a list of all members of this type, see FileNameEditor Members.
System.Object
System.Drawing.Design.UITypeEditor
System.Windows.Forms.Design.FileNameEditor
[Visual Basic] Public Class FileNameEditor Inherits UITypeEditor [C#] public class FileNameEditor : UITypeEditor [C++] public __gc class FileNameEditor : public UITypeEditor [JScript] public class FileNameEditor extends UITypeEditor
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
FileNameEditor provides a file selection dialog box for file name selection and editing.
Notes to Inheritors: You may inherit from this class to provide your own title for the dialog and your own file list filter extensions.
Example
[Visual Basic, C#, C++] The following code example uses an EditorAttribute to associate the System.Drawing.FileNameEditor with a property.
[Visual Basic] <EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property testFilename() As String Get Return filename End Get Set filename = value End Set End Property Private filename As String [C#] [EditorAttribute(typeof(System.Windows.Forms.Design.FileNameEditor), typeof(System.Drawing.Design.UITypeEditor))] public string testFilename { get { return filename; } set { filename = value; } } private string filename; [C++] public: [EditorAttribute(__typeof(System::Windows::Forms::Design::FileNameEditor), __typeof(System::Drawing::Design::UITypeEditor))] __property String* get_testFilename() { return filename; } [EditorAttribute(__typeof(System::Windows::Forms::Design::FileNameEditor), __typeof(System::Drawing::Design::UITypeEditor))] __property void set_testFilename(String* value) { filename = value; } private: String* filename;
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.Windows.Forms.Design
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Design (in System.Design.dll)
See Also
FileNameEditor Members | System.Windows.Forms.Design Namespace