如何在桌面上嵌入Windows Media Player或视频? [英] How to embed windows media player or video in desktop?

查看:396
本文介绍了如何在桌面上嵌入Windows Media Player或视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在桌面中嵌入Windows Media Player或视频?

我用C#进行编程,想知道是否有可能.

我已经知道你可以在窗体上使用Windows Media Player.

我试图确定是否可以在桌面中嵌入Media Player或带有Media Player的窗体.

我正在尝试重新创建用于ATI卡的视频播放器.它可以选择-始终位于顶部,普通位置,并作为背景.

我还看到了其他一些具有此功能的应用程序,包括VLC播放器.它们可以充当墙纸背景.

我正在尝试为正在开发的ap做相同的事情.

我需要知道是否有可能,如果可以的话,您能否给我一些从哪里开始的想法.

解决方案



我们需要将控制嵌入到表单中并处理表单.

您可能需要将FormBorderStyle设置为FormBorderStyle.None并设置TopMost格式为true;
私有void button1_Click(对象发送方,EventArgs e)
{.
this.FormBorderStyle = FormBorderStyle.Sizable;

}

private void button2_Click(对象发送者,EventArgs e)
{.
this.FormBorderStyle = FormBorderStyle.None;
this.TopMost = true;
br/>哈里


How to embed windows media player or video in desktop?

I do my programming in C# and wanted to know if this was possible.

I already know you can use windows media player on a form.

I was trying to find out if if it is possible to embed media player or form with media player in desktop.

I am trying to recreate a video player that use to come with ATI cards. It had the option to -always be on top, normal, and video as back ground.

I've seen a few other apps with this feature, including VLC player. They can act as wallpaper background.

I was trying to do the same thing for an ap that I'm working on.

I need to know if it's possible, and if so could you give me some idea where to start.

解决方案

Hi,

We need to embed contols into form ,and handle the form.

You might want to set the FormBorderStyle to FormBorderStyle.None and set TopMost of the form to true;
        private void button1_Click(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.Sizable;
            this.TopMost = false;

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.TopMost = true;
        }

Harry


这篇关于如何在桌面上嵌入Windows Media Player或视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆