Click here to Skip to main content
15,887,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 6:15
professionalSascha Lefèvre2-Feb-16 6:15 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 6:30
mvaKenneth Haugland2-Feb-16 6:30 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 7:19
professionalSascha Lefèvre2-Feb-16 7:19 
AnswerRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland12-Feb-16 6:50
mvaKenneth Haugland12-Feb-16 6:50 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre12-Feb-16 9:34
professionalSascha Lefèvre12-Feb-16 9:34 
QuestionSaveFileDialog Pin
Mrkhoza1-Feb-16 23:28
professionalMrkhoza1-Feb-16 23:28 
AnswerRe: SaveFileDialog PinPopular
OriginalGriff1-Feb-16 23:40
mveOriginalGriff1-Feb-16 23:40 
AnswerRe: SaveFileDialog Pin
BillWoodruff2-Feb-16 0:02
professionalBillWoodruff2-Feb-16 0:02 
Issues with customizing the built-in WinForms 'FileDialogs ('Open, 'Save) are discussed thoroughly in these CodeProject articles: [^], [^], [^].

I think it's a mistake to try and alter the appearance (the UI) of these Dialogs; Win users are socialized to expect these dialogs to behave in standard ways, and its tricky coding that will entail things like hooking the underlying Window of a Button, using Win API's, etc.

But, you can certainly exert a strong degree of control by creating a custom 'Filter setting restricting the viewed locations.

If you really want total control of where the user can save a file, why not create a ComboBox with all the valid locations in it; idea: use the 'DisplayMember and 'DisplayMember property to display whatever "friendly" name you think is meaningful to the user, and, perhaps, use the 'ValueMember property to hold the DirectoryInfo, or FileInfo you want associated with the "friendly" name. Put the ComboBox in a UserControl and then 'Show/Hide it as necessary.

In short, if you want the user to have fewer options: give them fewer options.
«In art as in science there is no delight without the detail ... Let me repeat that unless these are thoroughly understood and remembered, all “general ideas” (so easily acquired, so profitably resold) must necessarily remain but worn passports allowing their bearers short cuts from one area of ignorance to another.» Vladimir Nabokov, commentary on translation of “Eugene Onegin.”

AnswerRe: SaveFileDialog PinPopular
Dave Kreskowiak2-Feb-16 1:27
mveDave Kreskowiak2-Feb-16 1:27 
GeneralRe: SaveFileDialog Pin
BillWoodruff2-Feb-16 2:13
professionalBillWoodruff2-Feb-16 2:13 
GeneralRe: SaveFileDialog Pin
Dave Kreskowiak2-Feb-16 3:51
mveDave Kreskowiak2-Feb-16 3:51 
GeneralRe: SaveFileDialog Pin
John Torjo3-Feb-16 13:39
professionalJohn Torjo3-Feb-16 13:39 
AnswerRe: SaveFileDialog Pin
Kevin Marois3-Feb-16 11:35
professionalKevin Marois3-Feb-16 11:35 
QuestionTextbox help(edited) Pin
Member 122873371-Feb-16 20:25
Member 122873371-Feb-16 20:25 
AnswerRe: Textbox help(edited) Pin
BillWoodruff1-Feb-16 20:55
professionalBillWoodruff1-Feb-16 20:55 
GeneralRe: Textbox help(edited) Pin
Member 122873372-Feb-16 8:58
Member 122873372-Feb-16 8:58 
AnswerRe: Textbox help(edited) Pin
OriginalGriff1-Feb-16 20:57
mveOriginalGriff1-Feb-16 20:57 
GeneralRe: Textbox help(edited) Pin
BillWoodruff1-Feb-16 21:06
professionalBillWoodruff1-Feb-16 21:06 
GeneralRe: Textbox help(edited) Pin
OriginalGriff1-Feb-16 21:36
mveOriginalGriff1-Feb-16 21:36 
GeneralRe: Textbox help(edited) Pin
BillWoodruff1-Feb-16 22:32
professionalBillWoodruff1-Feb-16 22:32 
GeneralRe: Textbox help(edited) Pin
Member 122873372-Feb-16 8:54
Member 122873372-Feb-16 8:54 
QuestionTextbox help Pin
Member 122873371-Feb-16 20:25
Member 122873371-Feb-16 20:25 
QuestionTextbox binding/ Pin
Member 122873371-Feb-16 20:24
Member 122873371-Feb-16 20:24 
Questiondoes MethodInvoker will not work on win XP? Pin
Gilbert Consellado1-Feb-16 18:09
professionalGilbert Consellado1-Feb-16 18:09 
AnswerRe: does MethodInvoker will not work on win XP? Pin
John Torjo1-Feb-16 22:57
professionalJohn Torjo1-Feb-16 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.