Post: Some on help me with c# coding please.
08-31-2015, 11:40 PM #1
Trefad
I defeated!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey I need help adding this if possible. im trying to add something where the user can choose a file and use it. For example, a .mp3 player.
(adsbygoogle = window.adsbygoogle || []).push({});
09-01-2015, 11:25 AM #2
Chen Madhala
Pokemon Trainer
Originally posted by Trefad View Post
Hey I need help adding this if possible. im trying to add something where the user can choose a file and use it. For example, a .mp3 player.


You can use process.start to start the process
                OpenFileDialog Open = new OpenFileDialog();
string fileName = null;
//Text Type 2nd Text Type
Open.Filter = "MP3 Files|*.mp3|All Files|*.*"; //Will look only for those files, *.* For all file types
Open.InitialDirectory = @"C:\Program Files"; //Default folder
if (Open.ShowDialog() == DialogResult.OK)
{
fileName = Open.FileName;
System.Diagnostics.Process.Start(fileName); //Start the process
}

Or are you talking on something alse?

The following user thanked Chen Madhala for this useful post:

Trefad
09-01-2015, 12:10 PM #3
Trefad
I defeated!
Originally posted by Chen
You can use process.start to start the process
                OpenFileDialog Open = new OpenFileDialog();
string fileName = null;
//Text Type 2nd Text Type
Open.Filter = "MP3 Files|*.mp3|All Files|*.*"; //Will look only for those files, *.* For all file types
Open.InitialDirectory = @"C:\Program Files"; //Default folder
if (Open.ShowDialog() == DialogResult.OK)
{
fileName = Open.FileName;
System.Diagnostics.Process.Start(fileName); //Start the process
}

Or are you talking on something alse?


I'm pretty sure its this ill give it a try, thanks Smile
09-01-2015, 09:20 PM #4
Chen Madhala
Pokemon Trainer
Originally posted by Trefad View Post
I'm pretty sure its this ill give it a try, thanks Smile


No problem Smile
09-01-2015, 11:21 PM #5
Trefad
I defeated!
It worked but can you help me make it to where it plays without starting a player, its ok if its not possible its ok, I think it will just make it better. You mentioned process.start but I don't know how to use it if process.start is used to do that.
09-02-2015, 09:17 AM #6
Chen Madhala
Pokemon Trainer
Originally posted by Trefad View Post
It worked but can you help me make it to where it plays without starting a player, its ok if its not possible its ok, I think it will just make it better. You mentioned process.start but I don't know how to use it if process.start is used to do that.


The basics of Process.Start you can find in DotNetPerls.Com -> You must login or register to view this content.
If you want it to play without make the player to open, you will need to make your own player
I was never interested in making a video nor music player, but you can look on google of how to do it -> You must login or register to view this content.
You can find many tutorials on youtube and google

The following user thanked Chen Madhala for this useful post:

Trefad
09-02-2015, 11:19 AM #7
Default Avatar
Oneup
Guest
Originally posted by Trefad View Post
It worked but can you help me make it to where it plays without starting a player, its ok if its not possible its ok, I think it will just make it better. You mentioned process.start but I don't know how to use it if process.start is used to do that.


You must login or register to view this content.

The following user thanked Oneup for this useful post:

Trefad
09-02-2015, 12:18 PM #8
Trefad
I defeated!
Originally posted by Chen
The basics of Process.Start you can find in DotNetPerls.Com -> You must login or register to view this content.
If you want it to play without make the player to open, you will need to make your own player
I was never interested in making a video nor music player, but you can look on google of how to do it -> You must login or register to view this content.
You can find many tutorials on youtube and google


Originally posted by 1UP View Post
You must login or register to view this content.


Thanks Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo