写一个大规模下载器的问题?

时间:2017-10-02 02:32:06

标签: download youtube mass

public static int inc = -1;

private void Form1_Load(object sender, EventArgs e)
{
    //Downloader link (ytmate.com/?query=ytlink)
}

private void button3_Click(object sender, EventArgs e)
{
    foreach (listBoxItem in listBox1.Items)
    {
        webBrowser1.Navigate("ytmate.com/?query=" + listBox1.SelectedItem);
    }
}

private void button2_Click(object sender, EventArgs e)
{
    listBox1.Items.Remove(listBox1.SelectedItem);
}

private void trackBar1_Scroll(object sender, EventArgs e)
{
    timer1.Interval = trackBar1.Value * 100;
}

private void textBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
    MessageBox.Show("Enter the YouTube URLs without http:// or else it breaks it.", "INFO");
}

private void button1_Click(object sender, EventArgs e)
{
    listBox1.Items.Add(textBox1.Text);
}

首先,它似乎与foreach语句有问题。其次,我试图通过使用网站在其自己的网址末尾添加视频网址,并使用网络浏览器控件将视频网址快速连续地下载到下载程序网址,从而制作基本的大众YouTube下载程序。是否有更容易的方式来减少"逐个listBox的内容并附加网址?

0 个答案:

没有答案