Click here to Skip to main content
15,876,639 members
Home / Discussions / C#
   

C#

 
Questioncompression wave Pin
samir razzak10-Mar-13 0:17
samir razzak10-Mar-13 0:17 
AnswerRe: compression wave Pin
OriginalGriff10-Mar-13 0:56
mveOriginalGriff10-Mar-13 0:56 
AnswerRe: compression wave Pin
Marco Bertschi10-Mar-13 4:35
protectorMarco Bertschi10-Mar-13 4:35 
GeneralRe: compression wave Pin
dusty_dex10-Mar-13 6:13
dusty_dex10-Mar-13 6:13 
Question[Resolved] Searching for a file in multiple directories? Pin
Goaty651099-Mar-13 16:43
Goaty651099-Mar-13 16:43 
AnswerRe: Searching for a file in multiple directories? Pin
OriginalGriff9-Mar-13 22:39
mveOriginalGriff9-Mar-13 22:39 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty651099-Mar-13 23:05
Goaty651099-Mar-13 23:05 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff9-Mar-13 23:23
mveOriginalGriff9-Mar-13 23:23 
Goaty65109 wrote:
that just gives me the paths to the directories that contain a file called settings.txt

Not quite - if you add a button to your form and run that code in the button click, you will find it prints the full path to all the files called "Settings.txt". So all you have to do is feed the string into your IniFile constructor and access the file:
C#
IniFile ini = new IniFile(file);
You can then add each setting value to your ComboBox Items collection. You don't want to set the Text property each time, because that will only show the last value you set into it - it is just a string property after all! Laugh | :laugh:
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: Searching for a file in multiple directories? Pin
Goaty651099-Mar-13 23:31
Goaty651099-Mar-13 23:31 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff9-Mar-13 23:42
mveOriginalGriff9-Mar-13 23:42 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty651099-Mar-13 23:54
Goaty651099-Mar-13 23:54 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 0:00
mveOriginalGriff10-Mar-13 0:00 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 0:34
Goaty6510910-Mar-13 0:34 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 0:55
mveOriginalGriff10-Mar-13 0:55 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 1:03
Goaty6510910-Mar-13 1:03 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 1:12
mveOriginalGriff10-Mar-13 1:12 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 1:16
Goaty6510910-Mar-13 1:16 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 1:23
mveOriginalGriff10-Mar-13 1:23 
QuestionSuggestions: textbox background and foreground colours. Pin
Septimus Hedgehog9-Mar-13 10:58
Septimus Hedgehog9-Mar-13 10:58 
AnswerRe: Suggestions: textbox background and foreground colours. Pin
Ravi Bhavnani9-Mar-13 13:01
professionalRavi Bhavnani9-Mar-13 13:01 
GeneralRe: Suggestions: textbox background and foreground colours. Pin
Septimus Hedgehog9-Mar-13 23:02
Septimus Hedgehog9-Mar-13 23:02 
QuestionIf statement Pin
Sottyoru9-Mar-13 7:07
Sottyoru9-Mar-13 7:07 
AnswerRe: If statement Pin
PIEBALDconsult9-Mar-13 7:58
mvePIEBALDconsult9-Mar-13 7:58 
AnswerRe: If statement Pin
dusty_dex9-Mar-13 10:29
dusty_dex9-Mar-13 10:29 
GeneralRe: If statement Pin
PIEBALDconsult9-Mar-13 10:57
mvePIEBALDconsult9-Mar-13 10: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.