Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
AnswerRe: windows service Pin
Giorgi Dalakishvili8-Sep-07 1:04
mentorGiorgi Dalakishvili8-Sep-07 1:04 
Questionproblem about set resolution in twain.net scanner Pin
chehreghany7-Sep-07 22:20
chehreghany7-Sep-07 22:20 
AnswerRe: problem about set resolution in twain.net scanner Pin
Dave Kreskowiak8-Sep-07 3:21
mveDave Kreskowiak8-Sep-07 3:21 
QuestionWhat is wrong in this code? Pin
andredani7-Sep-07 20:11
andredani7-Sep-07 20:11 
AnswerRe: What is wrong in this code? Pin
Guffa7-Sep-07 21:55
Guffa7-Sep-07 21:55 
GeneralRe: What is wrong in this code? Pin
andredani8-Sep-07 10:00
andredani8-Sep-07 10:00 
AnswerRe: What is wrong in this code? Pin
Guffa8-Sep-07 11:04
Guffa8-Sep-07 11:04 
GeneralRe: What is wrong in this code? [modified] Pin
andredani8-Sep-07 12:45
andredani8-Sep-07 12:45 
no.. i meant that i haved googled on text property and listview property..
But i did´t find the awnser..

I have come as far as this:

if (listView2.SelectedItems.Count > 0)
{
int number = 0;
foreach (ListViewItem lvi in listView2.Items)

{

bool alreadyExists = true;

while (alreadyExists)
{
alreadyExists = false;
foreach (int existingNumber in lvi.SubItems[1].Text)
{
if (existingNumber == number)
{
alreadyExists = true;
break;
}
}
if (alreadyExists)
{
number = number + 1;
}
}
this.listView2.Items.Add(number.ToString());
}
}
changed a little bit but (i only get 0 in my listview, its beacause int number = 0;)


-- modified at 19:01 Saturday 8th September, 2007
GeneralRe: What is wrong in this code? Pin
Insincere Dave8-Sep-07 14:16
Insincere Dave8-Sep-07 14:16 
GeneralRe: What is wrong in this code? Pin
andredani9-Sep-07 1:03
andredani9-Sep-07 1:03 
AnswerRe: What is wrong in this code? Pin
Guffa8-Sep-07 16:46
Guffa8-Sep-07 16:46 
GeneralRe: What is wrong in this code? Pin
andredani9-Sep-07 1:07
andredani9-Sep-07 1:07 
AnswerRe: What is wrong in this code? Pin
Guffa9-Sep-07 8:43
Guffa9-Sep-07 8:43 
AnswerRe: What is wrong in this code? Pin
Skippums10-Sep-07 4:16
Skippums10-Sep-07 4:16 
GeneralRe: What is wrong in this code? Pin
andredani10-Sep-07 4:33
andredani10-Sep-07 4:33 
GeneralRe: What is wrong in this code? Pin
Skippums10-Sep-07 4:43
Skippums10-Sep-07 4:43 
GeneralRe: What is wrong in this code? Pin
andredani10-Sep-07 12:21
andredani10-Sep-07 12:21 
GeneralRe: What is wrong in this code? Pin
Skippums10-Sep-07 12:23
Skippums10-Sep-07 12:23 
GeneralRe: What is wrong in this code? Pin
andredani10-Sep-07 12:27
andredani10-Sep-07 12:27 
GeneralRe: What is wrong in this code? Pin
Skippums10-Sep-07 13:17
Skippums10-Sep-07 13:17 
QuestionHelp regarding datagridview control Pin
anu817-Sep-07 19:57
anu817-Sep-07 19:57 
QuestionApplication + Remoting +Terminal Server Issue. Help Pin
fearless stallion7-Sep-07 18:27
fearless stallion7-Sep-07 18:27 
AnswerRe: Application + Remoting +Terminal Server Issue. Help Pin
Dave Kreskowiak8-Sep-07 3:18
mveDave Kreskowiak8-Sep-07 3:18 
GeneralRe: Application + Remoting +Terminal Server Issue. Help Pin
fearless stallion8-Sep-07 18:05
fearless stallion8-Sep-07 18:05 
Questiontextbox & tab page bugg? Pin
rbuchana7-Sep-07 18:01
rbuchana7-Sep-07 18:01 

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.