本文介绍了将youtube中的视频显示到Windows窗体中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作Windows窗体,该窗体允许人们从不同类型的电影中选择电影.我使用列表框来显示电影和流派的列表.当用户选择一种流派时,该流派的电影将显示在另一个列表框中.

用户从该列表框中选择影片,然后将影片中的图片显示在图片框中,并将有关该影片的信息显示在文本框中.现在,我想做的是在表单中添加一个网络浏览器控件,该控件显示来自youtube的影片预告片中用户选择的影片的视频.我希望当用户从影片选择列表框中选择影片时显示预告片.因此,它不仅会显示有关该电影的图片和信息,而且还会显示该电影的预告片.但是我不确定该怎么做.我知道我需要但是将Web浏览器代码放入列表框事件代码中,但是我不确定它是什么代码?

I''m making a Windows form which allows people to select a film from different genres. I''ve used list boxes to display the list of films and genres. When a user selects a genre, the films from that genre are displayed in another list box.

The user selects a film from that list box, then a picture from the film is displayed in a picture box and informtion for the film is displayed in a text box. Now what I want to do is add a web browser control to the form, which displays a video from youtube of the film trailer for that the film the user has chosen. I want the trailer to be displayed when the user has selected the film from the film selection listbox. So not only will it display a picture and info about the film but also the trailer for that film too. But i''m not sure how to do this. I know I need to but web browser code into the listbox event code, but im not sure what code it is?

推荐答案


这篇关于将youtube中的视频显示到Windows窗体中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 02:39