Click here to Skip to main content
15,890,741 members
Home / Discussions / C#
   

C#

 
GeneralRe: file copy progress bar Pin
Mrguoxiang18-Aug-06 6:39
Mrguoxiang18-Aug-06 6:39 
AnswerRe: file copy progress bar Pin
ekynox18-Aug-06 13:25
ekynox18-Aug-06 13:25 
GeneralRe: file copy progress bar Pin
Coding C#19-Aug-06 1:33
Coding C#19-Aug-06 1:33 
GeneralRe: file copy progress bar Pin
ekynox21-Aug-06 2:20
ekynox21-Aug-06 2:20 
GeneralRe: file copy progress bar Pin
Coding C#21-Aug-06 20:14
Coding C#21-Aug-06 20:14 
GeneralRe: file copy progress bar Pin
ekynox22-Aug-06 1:03
ekynox22-Aug-06 1:03 
GeneralRe: file copy progress bar Pin
numbers1thru928-Aug-06 8:03
numbers1thru928-Aug-06 8:03 
QuestionHow to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 4:37
haz1318-Aug-06 4:37 
I am using collections for the first time and can't seem to figure out how to obtain the index of the last entry in the collection.

I am guessing that I could use IndexOf() or LastIndexOf() methods, but not sure what to pass into the method.

Here is the code

    public static class NumberProcessing<br />
    {<br />
        public static void UpdateSpinDataCollection()<br />
        {<br />
            SpinDataCollection.Add(new SpinData <br />
                SpinNumber,<br />
                CurrentNumber,<br />
                Colour<br />
                OddorEven);<br />
            <br />
            //Trying here to get index of last entry in collection<br />
            SDCPointer = (short)SpinDataCollection.LastIndexOf();<br />
<br />
            //Test<br />
            MessageBox.Show("SDCPointer:\t" + SDCPointer.ToString());<br />
}<br />
}


Haz

AnswerRe: How to obtain the index of the last entry in a collection Pin
Gonzalo Brusella18-Aug-06 4:47
Gonzalo Brusella18-Aug-06 4:47 
GeneralRe: How to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 4:50
haz1318-Aug-06 4:50 
GeneralRe: How to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 4:55
haz1318-Aug-06 4:55 
GeneralRe: How to obtain the index of the last entry in a collection Pin
Judah Gabriel Himango18-Aug-06 5:06
sponsorJudah Gabriel Himango18-Aug-06 5:06 
GeneralRe: How to obtain the index of the last entry in a collection Pin
Dustin Metzgar18-Aug-06 5:07
Dustin Metzgar18-Aug-06 5:07 
GeneralRe: How to obtain the index of the last entry in a collection Pin
Judah Gabriel Himango18-Aug-06 5:01
sponsorJudah Gabriel Himango18-Aug-06 5:01 
GeneralRe: How to obtain the index of the last entry in a collection Pin
haz1318-Aug-06 5:13
haz1318-Aug-06 5:13 
QuestionFTP Drive Space Pin
paas18-Aug-06 4:31
paas18-Aug-06 4:31 
AnswerRe: FTP Drive Space [modified] Pin
Gonzalo Brusella18-Aug-06 4:50
Gonzalo Brusella18-Aug-06 4:50 
QuestionHow do I use MSHTML to edit web &lt;select> boxes? Pin
spark12800018-Aug-06 3:42
spark12800018-Aug-06 3:42 
QuestionWSACAncelBlockingCall Pin
123456uio18-Aug-06 3:20
123456uio18-Aug-06 3:20 
AnswerRe: WSACAncelBlockingCall Pin
spark12800018-Aug-06 5:27
spark12800018-Aug-06 5:27 
GeneralRe: WSACAncelBlockingCall Pin
123456uio3-Sep-06 22:52
123456uio3-Sep-06 22:52 
Questionwhen .net2003 solution is migrated to .net2005, controls are not as .net2005 Pin
Ravikumar Patra18-Aug-06 3:13
professionalRavikumar Patra18-Aug-06 3:13 
AnswerRe: when .net2003 solution is migrated to .net2005, controls are not as .net2005 Pin
Stefan Troschuetz18-Aug-06 3:30
Stefan Troschuetz18-Aug-06 3:30 
GeneralRe: when .net2003 solution is migrated to .net2005, controls are not as .net2005 Pin
Ravikumar Patra18-Aug-06 3:55
professionalRavikumar Patra18-Aug-06 3:55 
QuestionDefault button on a form Pin
Le centriste18-Aug-06 2:59
Le centriste18-Aug-06 2:59 

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.