Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Open a word file from a web Pin
Vasudevan Deepak Kumar22-Nov-07 20:08
Vasudevan Deepak Kumar22-Nov-07 20:08 
GeneralRe: Open a word file from a web Pin
arslanjatt22-Nov-07 20:12
arslanjatt22-Nov-07 20:12 
GeneralRe: Open a word file from a web Pin
Vasudevan Deepak Kumar22-Nov-07 20:29
Vasudevan Deepak Kumar22-Nov-07 20:29 
QuestionFile.Exists Pin
troubled one22-Nov-07 19:53
troubled one22-Nov-07 19:53 
AnswerRe: File.Exists Pin
Andrei Ungureanu22-Nov-07 19:58
Andrei Ungureanu22-Nov-07 19:58 
GeneralRe: File.Exists Pin
troubled one22-Nov-07 20:03
troubled one22-Nov-07 20:03 
GeneralRe: File.Exists Pin
Andrei Ungureanu22-Nov-07 20:15
Andrei Ungureanu22-Nov-07 20:15 
AnswerRe: File.Exists [modified] Pin
Pankaj - Joshi22-Nov-07 19:59
Pankaj - Joshi22-Nov-07 19:59 
You can find the no of files on a particular folder like

cmbFileNames.items.clear();
DirectoryInfo di = new DirectoryInfo("C:\My Folder");
FileInfo[] rgFiles = di.GetFiles("*.txt");
foreach (FileInfo fi1 in rgFiles)
{
string fileName = fi1.Name;
cmbFileNames.Items.Add(fileName);
}
di = null;

Here I add the all available text files into the combo box hope this helps!!!


After that your will loop through the combo and split the file names like

message3.txt I.e. message length is 7 characters and after that count and then [.txt] So this will work for any case like

message3.txt
message233.txt
message154821.txt


Convert the

-- modified at 2:07 Friday 23rd November, 2007

Regards
Pankaj Joshi

If you want to shape your dreams into reality, please wake-up...

AnswerRe: File.Exists Pin
Vasudevan Deepak Kumar22-Nov-07 20:23
Vasudevan Deepak Kumar22-Nov-07 20:23 
QuestionHow to count through letters instead of numbers Pin
darthdart22-Nov-07 19:51
darthdart22-Nov-07 19:51 
AnswerRe: How to count through letters instead of numbers Pin
Vasudevan Deepak Kumar22-Nov-07 20:10
Vasudevan Deepak Kumar22-Nov-07 20:10 
QuestionRe: How to count through letters instead of numbers Pin
darthdart22-Nov-07 21:18
darthdart22-Nov-07 21:18 
AnswerRe: How to count through letters instead of numbers Pin
ChandraRam23-Nov-07 0:16
ChandraRam23-Nov-07 0:16 
GeneralRe: How to count through letters instead of numbers Pin
darthdart25-Nov-07 16:25
darthdart25-Nov-07 16:25 
QuestionRFID Pin
Aparna.B22-Nov-07 19:42
Aparna.B22-Nov-07 19:42 
AnswerRe: RFID Pin
Sun Rays22-Nov-07 19:43
Sun Rays22-Nov-07 19:43 
AnswerRe: Why do you keep reposting? Pin
Joe22-Nov-07 19:45
Joe22-Nov-07 19:45 
AnswerRe: RFID Pin
Andrei Ungureanu22-Nov-07 20:02
Andrei Ungureanu22-Nov-07 20:02 
AnswerRe: RFID Pin
Vasudevan Deepak Kumar22-Nov-07 20:12
Vasudevan Deepak Kumar22-Nov-07 20:12 
QuestionRFID Pin
Aparna.B22-Nov-07 19:37
Aparna.B22-Nov-07 19:37 
AnswerRe: RFID Pin
Joe22-Nov-07 19:43
Joe22-Nov-07 19:43 
GeneralRe: RFID Pin
Vasudevan Deepak Kumar22-Nov-07 20:14
Vasudevan Deepak Kumar22-Nov-07 20:14 
Questionerror in component Pin
angels77722-Nov-07 19:26
angels77722-Nov-07 19:26 
AnswerRe: error in component Pin
Andrei Ungureanu22-Nov-07 20:06
Andrei Ungureanu22-Nov-07 20:06 
AnswerRe: error in component Pin
Vasudevan Deepak Kumar22-Nov-07 20:18
Vasudevan Deepak Kumar22-Nov-07 20:18 

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.