Ok this is gonna sound stupid, but how do I get the program to work on a pc that doesn't have .net framework??? :P
Printable View
Ok this is gonna sound stupid, but how do I get the program to work on a pc that doesn't have .net framework??? :P
Could somebody please answer my question???
Create a setup program for your application, detect if the .net framework is present on the target machine and install it if it doesn't exist. This is pretty much built-in if you create a Visual Studio setup project.
Hi Dragster93, before all, sorry for my bad english.
This is my first post in this forum.
If your application was compiled (your solution generated) in Visual Studio 2003/2005/2008, will not work on a pc that haven't the .Net Framework installed.
Do what Arjay says. You can detect if a system have installed the framework by the application installer, with a few lines of code (in my case, I use NSIS to generate the installer package).
Your calc replaces the content of txt_Calc.Text, because you put the code this way:
txt_Calc.Text = "9";
instead of:
txt_Calc.Text += "9";
doing
txt_Calc.Text += "9";
is the same thing that doing
txt_Calc.Text = txt_Calc.Text + "9";
I hope it can be understandable and useful.
Alright, I've started out with the design of the media player. But, I have no idea about how to start the coding. I've never made a Media Player before so I don't know how to start or WHERE to start! Could someone give me some ideas?
Any help will be appreciated. :)
A good idea is to design the UI in a view editor and then hook it up later on.
Get basic functionality working (Play, Pause, Stop). Have 'Play' just start a hard coded song at first. Then, move on to more difficult tasks (displaying the list of songs in the UI, adding volume adjustment (tying a slider control to the volume of the song playback).
Before you know it, you'll have a functioning media player. Look at Windows Media Player and iTunes for examples of where to get started.
Since you're just starting with this, you may consider using WPF rather than WinForms.
WPF will give you more options for app skinning, transparency, etc.
Guys, I've already added the media player control. I now need to know how to play the selected file in the Media Player Control.
While this is good advice, I actually recommend sticking to .Net 2.x and WinForms as a beginner to C#. and UI development. I use WPF everyday at work and wouldn't recommend starting on it without a basic understanding and foundation in WinForm development first.
Dragster, I thought you were creating your own Media Player :)
If you're using the stock control, there is PLENTY of documentation on MSDN and all around the internet for how to plug it in and use it.
Also, intellisense is your friends. Look around and see what you find there. I'm sure it's as easy as calling Play and Stop and etc...
I would like to start from scratch. I don't care if it takes me days to create the form and get it up and running! I'll do it!
Since the programming models between WinForms and WPF are quite different, I don't believe there is any need to start with WinForms before moving to WPF. Since WPF offers features that are typically associated with a media app, it might be beneficial to the OP to start with WPF rather than starting with WinForms and running into a dead end.
Actually dude, since I started learning C#, all my programs have been created on WinForms only! So I have quite a bit of knowledge when it comes to WinForms. On the other hand, if I go to WPF app, I can't understand squat!
I would prefer sticking with WinForms for now. But dude, would you be willing to help me out in starting newly? I wanna build it from scratch! :)