Skip to main content

Posts

Showing posts from October, 2019

How to Create Video Player using WinForm C#

Here, I will explain how to store audio and video files in, and how to restore them from, a local database then how to play them in the Windows Media Player. I used a COM component, in other words the built-in media player in Windows. I will explain the following points: Step 1:  Go to "New Project" -> "Windows Forms application" then click on "Ok". Step 2:  Add two Buttons, one ComboBox and an OpenFileDialouge from the Toolbox. Step 3:  Now add a COM Component to the form. Open the ToolBox then Right-click then choose "Items" ->  "COM components" then select "Windows Media Player" then click "Ok". Next it will add something from the ToolBox then drag it from the Toolbox to the form. Our Form Look like this: axWindowsMediaPlayer1 control used to play video timerCheckState control used to check video in folder every 5000 ms txtVideoChanged control used to display log checking new video in folder...