|
It didn't solve a problem.
|
|
|
|
|
I am new to C# programing and I would like learn.I am using Visual Stuido 10 beta right now, and the only other programming I have done is in Html, PHP, and Java script.I've been doing some reading and been through the "hello world" Windows form app. Yeah I know, I am a master already right....
Anyway's I need some advice/help, just to get me going in the right direction. I have set up a game plan and a list of what I would like the program to be able to do. The idea is, a advanced media suite.Here are the fuctions I would like to incoperate into the project.
1)Video/DvD Player - Able to play video from the dvd drive and be able to play most popular video file types.
2)Audio player -able to play most audio file types like .wav, .mp3, and so on.
3)Picture Viewer/Slide show - Able to show most file types
4)Audio/Video/Picture burning - Able to burn the three media types to cd-r/dvd-r.
5)Video/Audio Conveter - Able to convert a wide range of file types to another
So, I was hoping to get this done by tomorrow. Joking
I know this might be a lot, and understand it might take take a good amount of time to complete. But is all of this realistic, or am I thinking of way to much for one person to be able to do in a life time? I would like to make most of them pretty advanced is possible. For exsample,
Video player fuctions:
Forward
Back
Next Chapter
Previous Chapter
Stop
Puase
Play
Volume
Mute
Full Screen
Captions
ext...
I would like to focus on the Media Player part first. I am pretty sure I found a few tutorials that will help me with the basic fuctions. I would like to steer clear of using fuctions of Windows Media Player. Once I can get down a good working Media player, I would like to release it as a open source beta project, releasing the other fuctions over a period of time as a new "Release". So any tips or links to useful information would be pretty cool.
Oh, and if I get stuck and need some guidence, Is it ok just to post it in the form, instead of making a new topic?
|
|
|
|
|
Most of this stuff is either incredibly complex or incredibly easy. Using the windows media player control to actually do it, it's very easy. You'd do better to learn C# first, rather than just learning how to use the WMP control.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
MattWeed9 wrote: I would like to steer clear of using fuctions of Windows Media Player.
OK, in that case, all of this is pretty much fantasy, in my opinion. You might get some functionality via DirectX, but I'm not sure how much. Certianly there is no way this is a valid project to start as a follow up to 'hello world'
MattWeed9 wrote: Oh, and if I get stuck and need some guidence, Is it ok just to post it in the form, instead of making a new topic?
If you reply to this thread, the issue is that your posts will quickly be buried by newer ones. CP does not bump posts that get new replies.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for the reply. I didn't really paln on getting all of this done. I am more of a learner through trial and error then just readingink, noth out of a book. I haven't done any form of programming in years, but I would like to thing in impossible.
From what I read on the net, it made it seem like C sharp was the "Ideal" langauge for developing windows applications. Is it, just that C# is not capible, or more of it would require a lot of time and understanding? I am 28 years old, I've got some time to kill.
|
|
|
|
|
MattWeed9 wrote: From what I read on the net, it made it seem like C sharp was the "Ideal" langauge for developing windows applications.
At this point, that is probably true.
MattWeed9 wrote: Is it, just that C# is not capible, or more of it would require a lot of time and understanding?
DirectX and Windows Media Player represent Microsoft doing all the hard work in writing the components to deal with video and audio files. It's that, as a beginner, the mp3 compression code alone is a major project, let alone writing to a CD or playing a video file.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Alright, thanks. Think I will try and work on some basic stuff for awhile to get more familar.
|
|
|
|
|
I am thinking this is a Windows thing but after my application closes, the notify icon will still appear in the taskbar. The only time it will disappear is when you roll your mouse over it.
Could there be something wrong that I am doing (that maybe Visual Studio is doing something wrong) or is this just something messed up with Windows OS?
This happened on XP but I am currently on Windows 7 and it is doing the same thing. Thats why I chose to ask the question.
I am using some background workers in my application but they should be ended when the application exits. I have also checked the task manager and do not see the application running
|
|
|
|
|
This happens on all kinds of Windows.
Your app should call Dispose() on its NotifyIcons prior to app exit.
One way of achieving this is by using
protected override void Dispose(bool disposing) {
if(disposing) {
notifyIcon.Dispose();
}
}
If your app does not, or just crashes, or gets killed, the icon remains intact until your mouse erases it. Unless you got this nice little tool[^] up and running (except it needs a fix for Win7).
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Sweet that works! Sounds like Windows wasn't very good at cleaning up?
|
|
|
|
|
i had the same problem, and fixing it is quite easy,
in your Program.cs text just place :
myIcon.Dispose();
right after Application.Run(new myForm());
the code should look like:
Application.Run(new myForm());
myIcon.Dispose();
that way when your application exits, the icon will hide
|
|
|
|
|
yes, that suffices when all is fine.
Not when an unhandled exception occurs, your app crashes or gets killed.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
i have interface
interface1<t,r>
{
list<t> returnall;
lsit<r> returnall1
}
i need to have the ability to pass r ot not when implemrnt interface and is that cas doesn't impelement methods that return r
thanks
md_refay
|
|
|
|
|
md_refay wrote: i need to have the ability to pass r ot not when implemrnt interface and is that cas doesn't impelement methods that return r
This makes no sense, did your post contain tags that have been stripped ? You can't do generic interfaces AFAIK.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: You can't do generic interfaces
IEnumerable<T> ?
|
|
|
|
|
I have no idea what you mean. Your post doesn't make sense to me.
However, maybe this helps:
public interface Abase<T> {
string Xyz(T arg);
}
public class A<T> : Abase<T> where T : class {
public string Xyz(T arg) { return arg.GetType().ToString(); }
}
[EDIT]<> fixed[/EDIT]
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
modified on Wednesday, November 11, 2009 6:54 PM
|
|
|
|
|
Did your angles get eaten?
|
|
|
|
|
seems like my entire post got de-angled by the HTML mob.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Hi
I create a tablelayoutpanel in FormDesign and because it is a big one and i need another one in the same form;
Now i want to use it twice at the same time but i want to change the text of the labels of that tablelayout for the second one,and remove some controls of the first one in CODE.
How can i change them in CODE?
THX
|
|
|
|
|
By setting the text property on the labels. IF you need to use it twice at the same time, create the whole thing as a user control, and then put two of them on the form.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
THX;
how can create a user control?
|
|
|
|
|
I suggest you abandon this task and buy a basic book on winforms and read it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi all, I am trying to insert data into sqlite datetime, but it seems like making my life really deficult.
this is what I have done to do this;
con.Open();<br />
cmd = new SQLiteCommand();<br />
cmd = con.CreateCommand();<br />
cmd.Connection = con;<br />
cmd.CommandText = " INSERT INTO Hall_Call_Up (Call,Time) VALUES ('1','" + dateTime.Now.ToString("YYYY-MM-DD HH:MM:SS") + "')";<br />
cmd.ExecuteNonQuery();
this is giving me error saying "Unable to read data"
But if I connect to datagridview and I do this;
this.hall_Call_UpTableAdapter.Insert(1, DateTime.Now);
it is working.
Can some one please help me.
thanks
|
|
|
|
|
Use a parameterised query and pass in a DateTime.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi Christian Graus,
Sorry for delay. I am very very new to database. infact this is for the first time I need to use database i any of my application. Do you mind to help me little more by showing how it should be done. I appolize if I am asking too much.
this is how[] the SQLite is telling me to do. Since I have never used it I don't know honeslty speaking.
thanks again.
|
|
|
|