Click here to Skip to main content
15,940,430 members
Home / Discussions / C#
   

C#

 
QuestionInserting a Record in Access database using tableAdapter. Pin
dsovino10-Jan-07 12:16
dsovino10-Jan-07 12:16 
QuestionAny one knows how to access Oracle DB on Unix using C# service application ? Pin
btsrinath10-Jan-07 11:51
btsrinath10-Jan-07 11:51 
AnswerRe: Any one knows how to access Oracle DB on Unix using C# service application ? Pin
ednrgc11-Jan-07 2:39
ednrgc11-Jan-07 2:39 
GeneralRe: Any one knows how to access Oracle DB on Unix using C# service application ? Pin
btsrinath11-Jan-07 5:11
btsrinath11-Jan-07 5:11 
Questionsearching an index with FindIndex() method Pin
Yustme10-Jan-07 10:48
Yustme10-Jan-07 10:48 
AnswerRe: searching an index with FindIndex() method Pin
Stefan Troschuetz10-Jan-07 11:18
Stefan Troschuetz10-Jan-07 11:18 
AnswerRe: searching an index with FindIndex() method Pin
hpjchobbes10-Jan-07 12:50
hpjchobbes10-Jan-07 12:50 
GeneralRe: searching an index with FindIndex() method [modified] Pin
Yustme10-Jan-07 20:49
Yustme10-Jan-07 20:49 
Hi guys,

I've read the msdn library for both code sample of this method and the documentation about it.

But i didn't understand it very well.

I've also searched with google for another example...

This is what i've tried:

// convertedString is an int
int indexOfNumber = this.listViewItems.FindIndex(FindIndexOfListViewItem(convertedString);

private int FindIndexOfListViewItem(int index)
{
for (int i = 0; i < this.listViewItems.Count; i++)
{
string currentItem = this.listViewItems[i].ToString();
//this.number is the item i wanna add as a subItem
if (currentItem == this.number)
{
return i;
}
}

return -1;
}

These are the errors i get:

The best overloaded method match for 'System.Collections.Generic.List<system.windows.forms.listviewitem>.FindIndex(System.Predicate<system.windows.forms.listviewitem>)' has some invalid arguments

Argument '1': cannot convert from 'int' to 'System.Predicate<system.windows.forms.listviewitem>'

What am i doing wrong?

Thanks in advance!
-- modified at 3:26 Thursday 11th January, 2007
QuestionCapture video Pin
Yevgeny Efter10-Jan-07 9:55
Yevgeny Efter10-Jan-07 9:55 
AnswerRe: Capture video Pin
Christian Graus10-Jan-07 11:32
protectorChristian Graus10-Jan-07 11:32 
AnswerRe: Capture video Pin
Andrei Ungureanu10-Jan-07 21:02
Andrei Ungureanu10-Jan-07 21:02 
GeneralRe: Capture video Pin
Yevgeny Efter11-Jan-07 2:06
Yevgeny Efter11-Jan-07 2:06 
QuestionRead Unstructured PDF FILES In C# Pin
adnanrafiq10-Jan-07 9:34
adnanrafiq10-Jan-07 9:34 
AnswerRe: Read Unstructured PDF FILES In C# Pin
Christian Graus10-Jan-07 11:32
protectorChristian Graus10-Jan-07 11:32 
QuestionMicrosoft JScript runtime error: 'TV_FilePlan_Data' is undefined Pin
Melissa4118310-Jan-07 9:25
Melissa4118310-Jan-07 9:25 
QuestionForms Pin
BlitzPackage10-Jan-07 7:41
BlitzPackage10-Jan-07 7:41 
AnswerRe: Forms Pin
Christian Graus10-Jan-07 7:44
protectorChristian Graus10-Jan-07 7:44 
GeneralRe: Forms Pin
BlitzPackage10-Jan-07 8:11
BlitzPackage10-Jan-07 8:11 
GeneralRe: Forms Pin
ndoran10-Jan-07 8:31
ndoran10-Jan-07 8:31 
GeneralRe: Forms Pin
BlitzPackage10-Jan-07 9:15
BlitzPackage10-Jan-07 9:15 
GeneralRe: Forms Pin
Judah Gabriel Himango10-Jan-07 9:20
sponsorJudah Gabriel Himango10-Jan-07 9:20 
QuestionGet Running Process In Mobile Pin
Tyler4510-Jan-07 7:08
Tyler4510-Jan-07 7:08 
AnswerRe: Get Running Process In Mobile Pin
Tyler4511-Jan-07 3:45
Tyler4511-Jan-07 3:45 
QuestionWhat makes this program print three times?? Pin
...---...10-Jan-07 6:56
...---...10-Jan-07 6:56 
AnswerRe: What makes this program print three times?? Pin
Alaric_10-Jan-07 7:05
professionalAlaric_10-Jan-07 7:05 

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.