Hi
In below line i am getting above error . Image attached.
this.webBrowser1.DocumentText = string.Format(html, "youtube.com/watch?v=MYojqnJ34g4".Split('=')[1]);
Thanks
Hi
In below line i am getting above error . Image attached.
this.webBrowser1.DocumentText = string.Format(html, "youtube.com/watch?v=MYojqnJ34g4".Split('=')[1]);
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajesh GamiRank #30 · 41.5K reputationPosted Nov 23, 2022, 2:13 AM EST
Hi Ramco
Try below code
var linkSplit = ("youtube.com/watch?v=MYojqnJ34g4").Split('=')[1]; this.webBrowser1.DocumentText = string.Format(html, linkSplit );