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
的内容并附加网址?