Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionList Boxes Pin
TippyMoe29-Apr-06 11:56
TippyMoe29-Apr-06 11:56 
AnswerRe: List Boxes Pin
Sean8929-Apr-06 13:19
Sean8929-Apr-06 13:19 
GeneralRe: List Boxes Pin
TippyMoe2-May-06 8:20
TippyMoe2-May-06 8:20 
AnswerRe: List Boxes Pin
Kuira1-May-06 14:14
Kuira1-May-06 14:14 
GeneralRe: List Boxes Pin
TippyMoe2-May-06 8:21
TippyMoe2-May-06 8:21 
QuestionLoop Issue Pin
teejayem29-Apr-06 10:14
teejayem29-Apr-06 10:14 
AnswerRe: Loop Issue Pin
Rob Graham29-Apr-06 10:25
Rob Graham29-Apr-06 10:25 
GeneralRe: Loop Issue Pin
teejayem29-Apr-06 10:39
teejayem29-Apr-06 10:39 
whoops i thought i would be able to use an if statement to process the loop. I have modified it a bit now but now i am getting an error:

An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll

Additional information: InvalidArgument=Value of '1' is not valid for 'index'.

private void syncbut_Click(object sender, EventArgs e)
{

    int filePathList = listView1.Items[0].Index;
    int lv2name = listView2.Items[0].Index;
    string fileName = listView2.Items[lv2name].Text;
    string path = listView1.Items[filePathList].Text;
    string path2 = textBox4.Text + fileName;

    do
    {
        listView1.Items[filePathList].SubItems[2].Text = "Processing";
        File.Copy(path, path2);
        filePathList++;
        lv2name++;
    }
    while (filePathList <= maxFilePath);
        this.syncstat.Text = "Status:  All Files Have Copied Successfully";
}


i'm trying to get it to start with the first item of the listview [0] then move to [1] and so on till the last one (maxFilePath)

Don't be overcome by evil, but overcome evil with good
GeneralRe: Loop Issue Pin
teejayem29-Apr-06 11:29
teejayem29-Apr-06 11:29 
GeneralRe: Loop Issue Pin
Rob Graham29-Apr-06 12:14
Rob Graham29-Apr-06 12:14 
GeneralRe: Loop Issue Pin
teejayem29-Apr-06 14:40
teejayem29-Apr-06 14:40 
QuestionExtend Webservice / Client with Plugins Pin
rEgEn2k29-Apr-06 7:35
rEgEn2k29-Apr-06 7:35 
AnswerRe: Extend Webservice / Client with Plugins Pin
rEgEn2k1-May-06 0:47
rEgEn2k1-May-06 0:47 
QuestionHow to make routing table?? Pin
Real Coder29-Apr-06 6:12
Real Coder29-Apr-06 6:12 
Answerhelp me plz~!! Pin
Real Coder29-Apr-06 11:52
Real Coder29-Apr-06 11:52 
Questiondisplaying base64binary data in crystal reports Pin
Dinuj Nath29-Apr-06 2:13
Dinuj Nath29-Apr-06 2:13 
AnswerRe: displaying base64binary data in crystal reports Pin
Dinuj Nath1-May-06 21:42
Dinuj Nath1-May-06 21:42 
Questionstore user-settings Pin
Paul Horstink29-Apr-06 1:34
Paul Horstink29-Apr-06 1:34 
AnswerRe: store user-settings Pin
Mark0629-Apr-06 16:01
Mark0629-Apr-06 16:01 
GeneralRe: store user-settings Pin
Paul Horstink29-Apr-06 19:33
Paul Horstink29-Apr-06 19:33 
GeneralRe: store user-settings Pin
Paul Horstink29-Apr-06 19:41
Paul Horstink29-Apr-06 19:41 
QuestionForm notification problem Pin
snouto29-Apr-06 1:02
snouto29-Apr-06 1:02 
AnswerRe: Form notification problem Pin
Robert Rohde29-Apr-06 5:30
Robert Rohde29-Apr-06 5:30 
QuestionCall DTS package using C# Pin
AmitSumit29-Apr-06 0:46
AmitSumit29-Apr-06 0:46 
QuestionDatabase on a network, Pin
abalfazl29-Apr-06 0:29
abalfazl29-Apr-06 0:29 

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.