HighTechTalks DotNet Forums  

FileNameEditor: How do I control the returned value?

Dotnet Framework (WinForms Controls) microsoft.public.dotnet.framework.windowsforms.controls


Discuss FileNameEditor: How do I control the returned value? in the Dotnet Framework (WinForms Controls) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jeff Johnson
 
Posts: n/a

Default FileNameEditor: How do I control the returned value? - 01-03-2008 , 04:49 PM






I have a need to derive from FileNameEditor to provide the ability to select
multiple files. It's not hard to make the OpenFileDialog function that way
by overriding the InitializeDialog() method, but the problem is that the
RETURN VALUE is still only a single file name. Is there any way to control
this? I thought the answer would lie in overriding ToString(), but that
didn't work. If EditValue() is what I need to use, can comeone please
explain HOW I would use it? The MSDN documentation tells me next to nothing
about this.

Also, before you suggest I use a CollectionEditor, I can't, because the
property I'm associating this with is kind of multi-purpose and needs to be
a string. It could hold any values like

C:\Temp\SomeFile.txt
"C:\Temp\1.dat" "C:\Temp\2.dat" "C:\Temp\3.dat"
C:\Data\*.txt
C:\\Data\\[^.]*\.(dat|csv|txt)



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.