Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8754937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:44:32+00:00 2026-06-13T13:44:32+00:00

I am trying to create a Windows Form application to play .WMV files. I

  • 0

I am trying to create a Windows Form application to play .WMV files.

I have 5 videos that i have added to my project, within a Videos folder.

I have created a button for each video, 5.

When a button is clicked, Button1, i want to be able to open Video1.. Using Windows Media Player for example.

Code so far::

    private void PlayVideo1_Click(object sender, EventArgs e)
    {
        // Open Windows Media Player
        System.Diagnostics.Process.Start("wmplayer.exe");

        // Play Video1.
        Process.Start("Video1.wmv");
    }

Please can you advise what i am doing wrong?

========================

Update:

Can a similar code be used for WPF?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:44:33+00:00Added an answer on June 13, 2026 at 1:44 pm

    Is the WMV files set to “Copy always” in the “Copy to output Directory” property? Like in the picture below:

    Example

    If it is, then the files are going to the same directory as the application, the next step is to run the WMV from the propert path,

    Your code:

    Process.Start("Video1.wmv");
    

    Is not wrong to want to start the WMV directly (that way, the default player in the target machine will run), but you need to send the full path (C:\Video.WMV for eg)

    If the WMV files are inside a VIDEOS folder within your application, you could change to do like this for eg:

    Process.Start(Path.Combine(Application.StartupPath, "VIDEOS/Video1.wmv"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a windows form application that manipulates data from several tables
I'm trying to create a Windows Form application that searches for a string and
I've been trying to create a database of equations that my windows form application
I'm trying to create a simple application that show two form-windows. The first one,
I'm trying to create a Windows Form application in C#, mostly just to practice
In a Windows Form application, I'm trying to create a DataGridView with two columns:
I have a windows form application that connects to a USB port. In the
I'm trying to create a windows form application and i want to implement a
I'm trying to find a way to create a nice windows form that will
I am new to C# and trying to learn how to create windows form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.