I am still quite new to this forum and I am still a real beginner in programming with C #.
A little bit I can just off the ground, but I want to improve my program that I use for private use.
I want to use a listbox and the media player open my series database on the program.
Currently it looks like this (of course, not finished)
The names of the sequences are transmitted over the button with the following command in the list box:
listBox1.Items.Clear(); string path = @"D:\Animes\****\"; string dirFiles = Directory.GetFiles(path); foreach (string file in dirFiles) listBox1.Items.Add(Path.GetFileNameWithoutExtension(file)); listBox1.Items.Remove("desktop");
The whole is now in Form1.
Now I want that when I click on a result in the list box, the video plays in Form2.
For playing videos I use Windows Media Player (axWindowsMediaPlayer1).
Can anyone because someone may help? I get the not so pretty on the series.
Thank you very much
PS: sorry for my bad english ._.
This post has been edited by tlhIn`toq: 07 February 2013 - 01:23 PM