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

C#

 
QuestionClosing another program Pin
gokhangs29-Apr-06 12:38
gokhangs29-Apr-06 12:38 
AnswerRe: Closing another program Pin
Robert Rohde29-Apr-06 20:18
Robert Rohde29-Apr-06 20:18 
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 
I am having an issue with a loop. Basically what i'm wanting to do is copy the first path in listView1 then automatically move on to the next item on the listView1. I did some testing without the file.copy function in the loop and i am seeing it isn't moving to the next item. also it tries the same item again Confused | :confused: .

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;

    if (filePathList <= maxFilePath)
    {
        listView1.Items[filePathList].SubItems[2].Text = "Processing";
        File.Copy(path, path2);

        filePathList++;
        lv2name++;
    }
        this.syncstat.Text = "Status:  All Files Have Copied Successfully";
}


any help would be appreciated!

Don't be overcome by evil, but overcome evil with good
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 
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 

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.