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

C#

 
GeneralRe: I have asked this question many times I'm lost Pin
XFighter10-Sep-07 5:09
XFighter10-Sep-07 5:09 
GeneralRe: I have asked this question many times I'm lost Pin
Skippums10-Sep-07 10:02
Skippums10-Sep-07 10:02 
QuestionOCIEnvCreate failed with return code -1 Error with .NET 2.0 Pin
Muammar©8-Sep-07 0:16
Muammar©8-Sep-07 0:16 
Questionwindows service Pin
rcwoods7-Sep-07 22:45
rcwoods7-Sep-07 22:45 
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 
I want to copy one listview.item and change name on subitem[1] by +1 if that exists add+1 and futher

Dictionary<string, int32=""> list = new Dictionary<string, int="">();
if (listView2.SelectedItems.Count > 0)
{
foreach (ListViewItem lvi in listView2.Items)
{
int number = Convert.ToInt32(lvi.SubItems[1]);


bool alreadyExists = true;

while (alreadyExists)
{
alreadyExists = false;
foreach (int existingNumber in listView2.Items)
{
if (existingNumber == number)
{
alreadyExists = true;
break;
}
}
if (alreadyExists)
{
number = number + 1;
}
}
}
}
it says: Unable to cast object of type 'ListViewSubItem' to type 'System.IConvertible'?

what should i do?D'Oh! | :doh: sigh
tnx mates
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 
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 

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.