Click here to Skip to main content
15,998,180 members
Home / Discussions / C#
   

C#

 
Questiondata from client into hashtable on server Pin
salman_syed_0126-Apr-06 18:36
salman_syed_0126-Apr-06 18:36 
QuestionWeb hosting in intranet Pin
Jijo BP26-Apr-06 17:07
Jijo BP26-Apr-06 17:07 
AnswerRe: Web hosting in intranet Pin
Ed.Poore26-Apr-06 23:47
Ed.Poore26-Apr-06 23:47 
AnswerRe: Web hosting in intranet Pin
Vasudevan Deepak Kumar27-Apr-06 4:04
Vasudevan Deepak Kumar27-Apr-06 4:04 
Questiona question about WebBrowser Pin
ylw6626-Apr-06 17:00
ylw6626-Apr-06 17:00 
GeneralRe: a question about WebBrowser Pin
Guffa26-Apr-06 20:52
Guffa26-Apr-06 20:52 
GeneralRe: a question about WebBrowser Pin
ylw6626-Apr-06 21:03
ylw6626-Apr-06 21:03 
GeneralRe: a question about WebBrowser Pin
Guffa26-Apr-06 22:35
Guffa26-Apr-06 22:35 
GeneralRe: a question about WebBrowser Pin
ylw6626-Apr-06 23:15
ylw6626-Apr-06 23:15 
GeneralRe: a question about WebBrowser Pin
Guffa27-Apr-06 1:07
Guffa27-Apr-06 1:07 
GeneralRe: a question about WebBrowser Pin
ylw6627-Apr-06 15:32
ylw6627-Apr-06 15:32 
GeneralRe: a question about WebBrowser Pin
Guffa28-Apr-06 3:21
Guffa28-Apr-06 3:21 
GeneralRe: a question about WebBrowser Pin
ylw6628-Apr-06 15:01
ylw6628-Apr-06 15:01 
AnswerRe: a question about WebBrowser Pin
J4amieC26-Apr-06 22:24
J4amieC26-Apr-06 22:24 
GeneralRe: a question about WebBrowser Pin
ylw6626-Apr-06 23:18
ylw6626-Apr-06 23:18 
GeneralRe: a question about WebBrowser Pin
J4amieC26-Apr-06 23:59
J4amieC26-Apr-06 23:59 
QuestionHow to decode Octal email encode Pin
kiachik26-Apr-06 14:51
kiachik26-Apr-06 14:51 
AnswerRe: How to decode Octal email encode Pin
kiachik26-Apr-06 23:46
kiachik26-Apr-06 23:46 
QuestionGetting data from listview Pin
teejayem26-Apr-06 14:38
teejayem26-Apr-06 14:38 
AnswerRe: Getting data from listview Pin
Sean8926-Apr-06 15:13
Sean8926-Apr-06 15:13 
GeneralRe: Getting data from listview Pin
teejayem26-Apr-06 15:58
teejayem26-Apr-06 15:58 
GeneralRe: Getting data from listview Pin
Sean8926-Apr-06 16:01
Sean8926-Apr-06 16:01 
GeneralRe: Getting data from listview Pin
teejayem26-Apr-06 16:11
teejayem26-Apr-06 16:11 
Alright here is what i got going on:

This button does the openfile and puts it in the textboxes:

private void button1_Click(object sender, EventArgs e)
{
    OpenFileDialog music = new OpenFileDialog();
    music.Title = "Add a music file";
    music.InitialDirectory = "C:\\";
    music.Filter = "Supported File Types|*.mp3,*.wma|All files (*.*)|*.*";
    music.FilterIndex = 2;
    music.RestoreDirectory = false;

    if (music.ShowDialog() == DialogResult.OK)
    {
        music.Multiselect = true;
        foreach (string fileName in music.FileNames)
        {
            textBox1.Text = fileName;
            textBox2.Text = "Audio";
            textBox3.Text = "Pending";
        }
        string[] myItems = new string[]
            {
                textBox1.Text,
                textBox2.Text,
                textBox3.Text
            };
        ListViewItem lvi = new ListViewItem(myItems);

        listView1.Items.Add(lvi);
    }

}



what i'm wanting to do before i do file.copy is move the filename in the listview back to
textbox1.text (textbox2 and 3 also but it doesn't really matter as of right now)

private void button6_Click(object sender, EventArgs e)
{
    string path = textBox1.Text;
    string path2 = textBox4.Text;

    try
    {
        // Copy the file.
        File.Copy(path, path2);
        this.syncstat.Text = "Status: Files Copied";
    }

    catch
    {
        this.syncstat.Text = "Status:  Cannot copy into the same folder";
    }


Don't be overcome by evil, but overcome evil with good
GeneralRe: Getting data from listview Pin
teejayem26-Apr-06 16:16
teejayem26-Apr-06 16:16 
GeneralRe: Getting data from listview Pin
Sean8927-Apr-06 9:52
Sean8927-Apr-06 9:52 

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.