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

C#

 
Questionremote access Pin
mkaraoglan9-Sep-07 4:18
mkaraoglan9-Sep-07 4:18 
AnswerRe: remote access Pin
Ermak869-Sep-07 4:34
Ermak869-Sep-07 4:34 
QuestionDataGidView Pin
Assaf829-Sep-07 4:16
Assaf829-Sep-07 4:16 
QuestionCompare listview item Pin
andredani9-Sep-07 3:22
andredani9-Sep-07 3:22 
AnswerRe: Compare listview item Pin
Mark F.9-Sep-07 11:18
Mark F.9-Sep-07 11:18 
GeneralRe: Compare listview item Pin
andredani10-Sep-07 0:37
andredani10-Sep-07 0:37 
GeneralRe: Compare listview item Pin
Mark F.10-Sep-07 3:40
Mark F.10-Sep-07 3:40 
GeneralRe: Compare listview item Pin
andredani10-Sep-07 4:17
andredani10-Sep-07 4:17 
ok... i check it out..
string[] lines = System.IO.File.ReadAllLines("dataapplikationer.txt");
Int32 index = 0;
while (lines.Length >= index + 10)
{
if ("#" != lines[index].Trim())
{
index++;
continue;
}
String appl = lines[index + 1];
String path = lines[index + 2];
String dest = lines[index + 3];
String pris = lines[index + 4];
String sort = lines[index + 5];
index += 10;
System.IO.DirectoryInfo subDI = new System.IO.DirectoryInfo(path);
foreach (String sub in Directory.GetDirectories(path))
{
foreach (String file in Directory.GetFiles(sub, "*.ini"))
{
String row5 = File.ReadAllLines(file)[4];
String section = row5.Substring(9, 6);
String subName = sub.Substring(sub.LastIndexOf(@"\") + 1);
DateTime time = DateTime.Now;
ListViewItem item = new ListViewItem(new string[] { sort, subName.ToString(), time.ToString(), "Summa tid", section, "AD", pris, appl });
this.listView2.Items.Add(item);
this.listView2.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
}
}
}

but how do i build it together in this code i want the sort, subName.Tostring() to compare in all items in listview1 and if it founds one equal then calculate time "summa tid" and pass by "av"??

Please man! help me build it together... peace!

Poke tongue | ;-P Wink | ;) D'Oh! | :doh:
QuestionProblem with LDF files ( database log file ) Pin
Developer6119-Sep-07 2:20
Developer6119-Sep-07 2:20 
QuestionHow to display # using / and % Pin
programming1019-Sep-07 2:16
programming1019-Sep-07 2:16 
AnswerRe: How to display # using / and % Pin
Christian Graus9-Sep-07 2:33
protectorChristian Graus9-Sep-07 2:33 
AnswerRe: How to display # using / and % [modified] Pin
Julian Nicholls9-Sep-07 2:48
Julian Nicholls9-Sep-07 2:48 
QuestionCreating textboxes Pin
garga19-Sep-07 0:40
garga19-Sep-07 0:40 
AnswerRe: Creating textboxes Pin
Giorgi Dalakishvili9-Sep-07 1:07
mentorGiorgi Dalakishvili9-Sep-07 1:07 
Questiondrag and drop in datagridview??????? Pin
San@Coding9-Sep-07 0:14
San@Coding9-Sep-07 0:14 
Questionhow can send a Unicode message with "at command" and gsm ? Pin
B.A8-Sep-07 21:42
B.A8-Sep-07 21:42 
AnswerRe: how can send a Unicode message with "at command" and gsm ? Pin
Giorgi Dalakishvili8-Sep-07 23:34
mentorGiorgi Dalakishvili8-Sep-07 23:34 
GeneralRe: how can send a Unicode message with "at command" and gsm ? Pin
B.A9-Sep-07 19:18
B.A9-Sep-07 19:18 
GeneralRe: how can send a Unicode message with "at command" and gsm ? Pin
Giorgi Dalakishvili9-Sep-07 20:36
mentorGiorgi Dalakishvili9-Sep-07 20:36 
QuestionKey Presses Pin
ahojed8-Sep-07 21:00
ahojed8-Sep-07 21:00 
AnswerRe: Key Presses Pin
Ermak868-Sep-07 22:50
Ermak868-Sep-07 22:50 
AnswerRe: Key Presses Pin
Giorgi Dalakishvili8-Sep-07 23:23
mentorGiorgi Dalakishvili8-Sep-07 23:23 
GeneralRe: Key Presses Pin
ahojed9-Sep-07 4:14
ahojed9-Sep-07 4:14 
GeneralRe: Key Presses Pin
Giorgi Dalakishvili9-Sep-07 4:40
mentorGiorgi Dalakishvili9-Sep-07 4:40 
Questionsocket programing Pin
ali_reza_zareian8-Sep-07 19:19
ali_reza_zareian8-Sep-07 19:19 

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.