質問者
VisualBasic2010ダウンローダー作成

質問
-
YouTubeの動画を参考(http://www.youtube.com/watch?v=XwMspfczr4E)にダウンローダーを作ってみましたが、動画をダウンロード(違法かな?)しても、「MediaPlayerはこの拡張子に対応していません。」的な文が出てきて再生できません。コードを下に載せます。
Private Sub Downloadbtn_Click(sender As System.Object, e As System.EventArgs) Handles Downloadbtn.Click
WebClient1.DownloadFile(TextBox1.Text, hozonnsaki.Text)
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click '保存先選択のボタンです。
Dim s As New SaveFileDialog
If s.ShowDialog = Windows.Forms.DialogResult.OK Then
hozonnsaki.Text = s.FileName
End If
End Sub
Private Sub WebClient1_DownloadFileCompleted(sender As Object, e As System.ComponentModel.AsyncCompletedEventArgs) Handles WebClient1.DownloadFileCompleted
MsgBox("ダウンロードが完了致しました。", MsgBoxStyle.Information, "Downloader")
End Sub
Private Sub WebClient1_DownloadProgressChanged(sender As Object, e As System.Net.DownloadProgressChangedEventArgs) Handles WebClient1.DownloadProgressChanged
ProgressBar1.Value = e.ProgressPercentage
Label4.Text = e.ProgressPercentage.ToString + "%を完了..." '進行状況を示せる筈です。
End Sub
End Class
どうかお願いいたします。
- 移動 山本春海 2011年11月21日 5:11 より (移動元:MSDN / TechNet フォーラムへのご意見ご要望)