Click here to Skip to main content
15,908,906 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Panel_paint method Pin
Robert Rohde16-Jun-06 9:43
Robert Rohde16-Jun-06 9:43 
GeneralRe: Panel_paint method Pin
Guffa16-Jun-06 5:00
Guffa16-Jun-06 5:00 
QuestionMemory Corrupt (Migration from 1.1 to 2.0) Pin
elcheah15-Jun-06 23:22
elcheah15-Jun-06 23:22 
QuestionMysterious .NET error. [modified] Pin
MY120115-Jun-06 21:51
MY120115-Jun-06 21:51 
AnswerRe: Mysterious .NET error. Pin
leppie15-Jun-06 22:16
leppie15-Jun-06 22:16 
QuestionShared Assemblies Pin
Garg, Deepak15-Jun-06 20:39
professionalGarg, Deepak15-Jun-06 20:39 
AnswerRe: Shared Assemblies Pin
Justin_Joseph16-Jun-06 1:50
Justin_Joseph16-Jun-06 1:50 
QuestionCompare Listview Items and return the index Pin
eatwork15-Jun-06 4:49
eatwork15-Jun-06 4:49 
Hello everyone,
I was wondering if anyone out there might know how to compare an entire listview item and return the index if one of the items matches. i have tried:

<br />
    Public Function FindItem(ByVal item As ListViewItem) As Integer<br />
        Dim itm As ListViewItem<br />
        For Each itm In Me.Items<br />
            If itm.Equals(item) Then<br />
                Return itm.Index<br />
                Exit Function<br />
            End If<br />
        Next<br />
        Return -1<br />
    End Function<br />
<br />
AND <br />
<br />
    Public Function FindItem(ByVal item As ListViewItem) As Integer<br />
        Dim itm As ListViewItem<br />
        For Each itm In Me.Items<br />
            If itm.Text = item.text Then<br />
                Return itm.Index<br />
                Exit Function<br />
            End If<br />
        Next<br />
        Return -1<br />
    End Function<br />


The first one does not seem to work at all, and the second one works, but only checks the text value of the first column and does not seem to compare other column values of the listviewitem. Thank you

eatwork
AnswerRe: Compare Listview Items and return the index Pin
Josh Smith15-Jun-06 4:59
Josh Smith15-Jun-06 4:59 
GeneralRe: Compare Listview Items and return the index Pin
eatwork15-Jun-06 5:22
eatwork15-Jun-06 5:22 
QuestionTrack the LAN Mailslot messages Pin
Rsekaran15-Jun-06 2:14
Rsekaran15-Jun-06 2:14 
QuestionRemoting help.. [modified] Pin
Resolver1815-Jun-06 1:35
Resolver1815-Jun-06 1:35 
AnswerRe: Remoting help.. Pin
Robert Rohde16-Jun-06 9:44
Robert Rohde16-Jun-06 9:44 
GeneralRe: Remoting help.. Pin
Resolver1818-Jun-06 20:18
Resolver1818-Jun-06 20:18 
QuestionOK -> X ??? Pin
Ali Beirami14-Jun-06 20:47
Ali Beirami14-Jun-06 20:47 
AnswerRe: OK -> X ??? Pin
Guffa14-Jun-06 21:50
Guffa14-Jun-06 21:50 
QuestionLoading Resource Pin
John R. Shaw14-Jun-06 19:56
John R. Shaw14-Jun-06 19:56 
QuestionAnyone knows ADXStudio? Pin
Rukmini T14-Jun-06 9:03
Rukmini T14-Jun-06 9:03 
Question.Net Assembly Pin
Manoj T.14-Jun-06 8:58
Manoj T.14-Jun-06 8:58 
Questionbutton_click does not work Pin
Kosta Pereira14-Jun-06 4:00
Kosta Pereira14-Jun-06 4:00 
AnswerRe: button_click does not work Pin
Ravi Bhavnani14-Jun-06 4:08
professionalRavi Bhavnani14-Jun-06 4:08 
AnswerRe: button_click does not work Pin
Alsvha14-Jun-06 21:14
Alsvha14-Jun-06 21:14 
QuestionWhy new version everytime? Pin
Mahesh Sapre14-Jun-06 1:57
Mahesh Sapre14-Jun-06 1:57 
AnswerRe: Why new version everytime? Pin
gantww14-Jun-06 2:55
gantww14-Jun-06 2:55 
GeneralRe: Why new version everytime? Pin
Jun Du14-Jun-06 8:21
Jun Du14-Jun-06 8:21 

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.