Hello, I try to play a video I i don't know how.. I searched and i found some tips and articles, but all of it if about Windows Media Player. It's fine, but i need to play something lika an intro an i don't wanna show all that buttons of WMP.. I tried to hide it but no change. Please help me :(

Have you tried using the following command?

axWindowsMediaPlayer1.uiMode = "none";

BobS0327, you really helped me. Thanks you a lot! <3

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX.AudioVideoPlayback; // this dll is needed. download it and add in references

namespace BasicScience

    public partial class frmFirst : WeifenLuo.WinFormsUI.DockContent
    {
        private Video video;
        public frmFirst()
        {
            InitializeComponent();
        }


        private void frmFirst_Load(object sender, EventArgs e)
        {
            video = new Video("..//..//Resources//Video1.wmv"); // set your path but its work only on wmv type videos...

            int width = viewport.Width;
            int height = viewport.Height;
            // set the panel as the video object’s owner
            video.Owner = viewport;

            // stop the video
            video.Stop();

            // resize the video to the size original size of the panel
            viewport.Size = new Size(width, height);
        }

        private void btnPlay_Click(object sender, EventArgs e)
        {
            if (video.State != StateFlags.Running)
            {
                video.Play();
            }
        }

        private void btnPause_Click(object sender, EventArgs e)
        {
            if (video.State == StateFlags.Running)
            {
                video.Pause();
            }
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            if (video.State != StateFlags.Stopped)
            {
                video.Stop();
            }
        }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.