Html5 video player In Windows Forms RRS feed

  • Question

  • Hi,

         Can we you HTML5 video player in Win Forms? I am aware that we can use "Windows Media Player" COM component on Win Forms, but is there any possibility to use HTML5 video player? If yes, Any idea / suggestion or a code block to implement the above mentioned scenario is highly appreciated.

    Regards, Dillu

    Monday, March 26, 2018 7:33 AM


  • Hi Dillu,

    I'm not sure if it can do it, it seems there is no document to explain this, I suggest you use a generic approach:

            static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
            private void Form1_Load(object sender, EventArgs e)
                Process notepad = new Process();
                ProcessStartInfo psi = new ProcessStartInfo(@"notepad.exe");
                psi.WindowStyle = ProcessWindowStyle.Normal;
                notepad.StartInfo = psi;
                SetParent(notepad.MainWindowHandle, this.Handle);

    Refer: Embedding different applications in a Win Form in .NET

    Also: Embedding an external executable inside a C# program



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    • Marked as answer by dillu Saturday, March 31, 2018 5:12 AM
    Tuesday, March 27, 2018 1:29 AM