Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
GeneralRe: Freeze user access Pin
Glen Harvy11-Sep-07 0:07
Glen Harvy11-Sep-07 0:07 
GeneralRe: Freeze user access Pin
Luc Pattyn11-Sep-07 0:44
sitebuilderLuc Pattyn11-Sep-07 0:44 
GeneralRe: Freeze user access Pin
Glen Harvy11-Sep-07 1:52
Glen Harvy11-Sep-07 1:52 
GeneralRe: Freeze user access Pin
Luc Pattyn11-Sep-07 2:15
sitebuilderLuc Pattyn11-Sep-07 2:15 
QuestionProblems with treeview in WPF Pin
sinosoidal10-Sep-07 22:29
sinosoidal10-Sep-07 22:29 
GeneralRe: Problems with treeview in WPF Pin
asit4u114-Dec-09 3:54
asit4u114-Dec-09 3:54 
QuestionHow to serialize a class that has both of two worlds Pin
sinosoidal10-Sep-07 22:27
sinosoidal10-Sep-07 22:27 
QuestionDifficult question Pin
andredani10-Sep-07 22:06
andredani10-Sep-07 22:06 
Dictionary<string, listviewitem=""> list = new Dictionary<string, listviewitem="">();
String nameAndJob, Job, line, name;
Int32 pages;
ListViewItem item1;
foreach (ListViewItem lvi in listView2.Items)
{
nameAndJob = string.Concat(lvi.SubItems[0].Text);
if (!list.ContainsKey(nameAndJob)) list.Add(nameAndJob, lvi);
Job = string.Concat(lvi.SubItems[1].Text);
if (!list.ContainsKey(Job)) list.Add(Job, lvi);
}
using (StreamReader sr = new StreamReader(path1 + "/personalpr.txt"))
{
while (sr.Peek() > 0)
{
line = sr.ReadLine();
if (line == "#")
{
name = sr.ReadLine();
nameAndJob = string.Concat(name);
Job = string.Concat(name);
if (list.ContainsKey(nameAndJob))
{
item1 = list[nameAndJob];
item1 = list[Job];
item1.SubItems[1].Text = sr.ReadLine();
item1.SubItems[3].Text = sr.ReadLine();
item1.SubItems[5].Text = sr.ReadLine();
}
int result = 0;
foreach (ListViewItem lvi in listView2.Items)
{
result += int.Parse(lvi.SubItems[2].ToString()) - int.Parse(lvi.SubItems[3].ToString()); ????????????????????Mad | :mad:

////I want to calculate lvi.subitems[2] - lvi.subitems[3] and pass the result to subitems[3].Mad | :mad:


}
item1.SubItems[3] = result.ToString();???????Mad | :mad:
}
}
}
}

Can i delete this readline from .txt file after this use??? and how??

Thanks all!! Smile | :) Big Grin | :-D ;)Laugh | :laugh:
AnswerRe: Difficult question Pin
pmarfleet10-Sep-07 23:25
pmarfleet10-Sep-07 23:25 
QuestionUnicode problem Pin
Muammar©10-Sep-07 22:00
Muammar©10-Sep-07 22:00 
AnswerRe: Unicode problem Pin
Martin#10-Sep-07 22:19
Martin#10-Sep-07 22:19 
GeneralRe: Unicode problem Pin
Muammar©11-Sep-07 19:35
Muammar©11-Sep-07 19:35 
Question20 Questions Algorithm Pin
Andre Trollip10-Sep-07 21:43
Andre Trollip10-Sep-07 21:43 
AnswerRe: 20 Questions Algorithm Pin
suveenmohan10-Sep-07 23:47
suveenmohan10-Sep-07 23:47 
GeneralRe: 20 Questions Algorithm Pin
Andre Trollip11-Sep-07 3:17
Andre Trollip11-Sep-07 3:17 
QuestionMicrosoft image printing problems Pin
pmartike10-Sep-07 20:43
pmartike10-Sep-07 20:43 
Questiondisable a button Pin
Sunshine Always10-Sep-07 20:07
Sunshine Always10-Sep-07 20:07 
AnswerRe: disable a button Pin
Chetan Patel10-Sep-07 20:23
Chetan Patel10-Sep-07 20:23 
GeneralRe: disable a button Pin
Sunshine Always10-Sep-07 20:31
Sunshine Always10-Sep-07 20:31 
GeneralRe: disable a button Pin
Martin#10-Sep-07 22:06
Martin#10-Sep-07 22:06 
AnswerRe: disable a button Pin
Luc Pattyn11-Sep-07 0:50
sitebuilderLuc Pattyn11-Sep-07 0:50 
Questionhow can show a pdf file in C#? Pin
B.A10-Sep-07 19:54
B.A10-Sep-07 19:54 
AnswerRe: how can show a pdf file in C#? Pin
satsumatable10-Sep-07 20:49
satsumatable10-Sep-07 20:49 
GeneralRe: how can show a pdf file in C#? Pin
blackjack215010-Sep-07 22:07
blackjack215010-Sep-07 22:07 
AnswerRe: how can show a pdf file in C#? Pin
Luc Pattyn11-Sep-07 0:52
sitebuilderLuc Pattyn11-Sep-07 0:52 

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.