How to watch youtube video from C# win application
I want to watch youtube video from C# win application. I am a newbei- please help me. I used webbrowser control but in that way I can only load the full page. I just want to show the youtube player
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Jun 7, 2009, 12:04 PM EDT
be sure to Define
using System.IO;
private void btnPlay_Click(object sender, EventArgs e) { StreamWriter sw = new StreamWriter("utube.html"); string PlayString = txtURL.Text.Trim().Replace("watch?v=", "v/"); string Finalplaycode = ""; sw.Write(Finalplaycode); sw.Close(); string PathToNavigate = Directory.GetParent(Application.ExecutablePath) + @"\utube.html"; webBrowser1.Navigate(PathToNavigate); }