I've created a custom control and I have a FileName property for it.
I've added the EditorAttribute so the little ellipsis button will appear at
design time for the property, which allows the user of the control to
specify a filename. The code is below and that works great.
But I want to limit the dialog to only show certain file types. That is, it
should only show files with the file extensions that I specify. Does
anybody know how to do this?
<EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), _
GetType(System.Drawing.Design.UITypeEditor))> _
Public Property FileName() As String
...
Tim Wilson - 30 Apr 2005 22:45 GMT
You'll probably need to derive a new editor from the FileNameEditor class,
override the InitializeDialog method, and specify the filter information.

Signature
Tim Wilson
.Net Compact Framework MVP
> I've created a custom control and I have a FileName property for it.
> I've added the EditorAttribute so the little ellipsis button will appear at
[quoted text clipped - 10 lines]
>
> ...