|
hello every1 , am new to programming. am doin my dissertation on cd database in C#. my software should retrieve information from a cd dat is manually put into cd drive. software should copy cd info like the artist , name, song , et into a database.
This is where am stuck. am havn problems copying the cd info successfully. now my deadline is in just 1month.
This code i thought was workin.now it isnt.
PLS I NEED HELP.. AM DESPERATE..
|
|
|
|
|
Can you show the code where you are copying the CD data. And pin point the problem you are facing.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
this is the code. it gives no errors. its just not getting the contents off the cd like the album name , artist, etc.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WMPLib;
using AxWMPLib;
namespace CdRomManagement
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void axWindowsMediaPlayer1_CdromMediaChange(object sender, AxWMPLib._WMPOCXEvents_CdromMediaChangeEvent e)
{
axWindowsMediaPlayer1.currentPlaylist = axWindowsMediaPlayer1.cdromCollection.Item(e.cdromNum).Playlist;
axWindowsMediaPlayer1.Ctlcontrols.stop();
this.textBox1.Text = "Name: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Name") + Environment.NewLine;
this.textBox1.Text += "author: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("author") + Environment.NewLine;
this.textBox1.Text += "Title: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Title") + Environment.NewLine;
this.textBox1.Text += "Album: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Album") + Environment.NewLine;
this.textBox1.Text += "copyright: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("copyright") + Environment.NewLine;
this.textBox1.Text += "Artist: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Artist") + Environment.NewLine;
this.textBox1.Text += "Genre: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Genre").ToString() + Environment.NewLine;
this.textBox1.Text += "Bitrate: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Bitrate") + Environment.NewLine;
this.textBox1.Text += "Abstract: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("Abstract") + Environment.NewLine;
this.textBox1.Text += "bitRate: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("bitRate") + Environment.NewLine;
this.textBox1.Text += "duration: " + axWindowsMediaPlayer1.currentMedia.getItemInfo("duration") + Environment.NewLine;
}
}
}
|
|
|
|
|
Don't flood the whole site. Post to the right forum and stick to 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.
|
|
|
|
|
mimi8469 wrote: information from a cd dat
A CD and a DAT are two different formats. Which one did you mean ? Or are you just talking like a retard ?
mimi8469 wrote: now my deadline is in just 1month.
This code i thought was workin.now it isnt.
PLS I NEED HELP.. AM DESPERATE..
Why did you think it was working, and why is it not now ? I'd assume you used to connect to a database of CDs that no longer exists. Either way, it's kind of your problem. Posting a vague question like this isn't going to get you any help, you're basically asking us to redo your project, or you just plain have not thought about your post. Post some code, tell us what goes wrong, and then perhaps we can offer specific help.
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.
|
|
|
|
|
dat = that
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Please don't cross post.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
hi
in windows application , i have 3 text boxes which takes intput as decimal
now in en-US setting '.' is treated as '.' only
but in da-DK (danish Denmark) ',' is treated as '.'
and '.' is treated as ','
how to apply these settings to text boxes
i found an alternative way like this
i m replacing ',' as '.' in da-DK cuture
i know that it is not the correct way
is there any solutions for this
|
|
|
|
|
vijaylumar wrote: how to apply these settings to text boxes
They apply themselves. A textbox has no idea what you're entering, it doesn't know it's a number. int.TryParse or float.Parse, or whatever, will use the current culture.
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.
|
|
|
|
|
can you tell how to apply globalization in windows applications
thanking you
|
|
|
|
|
You can apply your chosen culture in overloaded methods if you don't want to use the default culture.
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, everybody
How to retrieve the index of items in a ListBox and
then using a loop make a statement on each element of the listbox until last.
Thank for your help
|
|
|
|
|
What have you tried ? It's very basic. Do you have any C# or winforms books ?
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.
|
|
|
|
|
In reality I am a beginner in C #.
|
|
|
|
|
Well, you won't learn anything if instead of reading books, you ask us to provide you with the most basic code without trying to write it yourself.
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.
|
|
|
|
|
I'm realizing a application that will enable me via my USB bluetooth detect mobile and then list them in my ListBox. And each of my mobile ListBox send a message, but automatically.
|
|
|
|
|
Sounds like far too complex an application for someone who doesn't know how to iterate over a listbox's items. Try something more basic first.
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.
|
|
|
|
|
If you have a syntax that allows me to retrieve the index of elements in a ListBox, its me far enough. Thank you
|
|
|
|
|
Go out and buy an introductory book on C#. Study that for one week and you will leap ahead.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I want to know how can i get the number of times a window has been visited
|
|
|
|
|
You would need to write code to track that value yourself.
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.
|
|
|
|
|
You can use a class level static integer variable for this. Increment it in the load event of your form. If you need the value next time the application is opened, either save it in database or in config file or in registry.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hi All,
Is there anyone in here have some sort of expeience with Janus Grid, if you do, can you please read through.
This is about format a cell in Janus Grid, such as:
GridEXFormatCondition fco = new GridEXFormatCondition(
this.gridEX1.RootTable.Columns[4],
ConditionOperator.Equal, true);
fco.TargetColumn = this.gridEX1.RootTable.Columns[4];
fco.TargetColumn.CellStyle.BackColor = Color.LightYellow;
This piece of code formats the back color of whole Columns[4] to light yellow, now what i really want is to format a cell, rather than the whole Columns[4] to light yellow.
If someone in here can shed me a light will be great.
|
|
|
|
|
Dont worry, guys, I already worked it out myself. here is the solutionif anyone come across the same issue next time:
basically once the target column be pointed, then the fco applys on that sepcific cell when condition meets:
GridEXFormatCondition fco = new GridEXFormatCondition(
this.gridEX1.RootTable.Columns[4],
ConditionOperator.Equal, true);
fco.TargetColumn = this.gridEX1.RootTable.Columns[4];
fco.FormatStyle.BackColor = Color.LightYellow;
|
|
|
|
|
Hi.
i face a Error
Unable to cast object of type 'System.Windows.Forms.TextBox' to type 'System.IConvertible'.
When I Do this
int ProdTotal=0;
ConTotalTxt.Text = Convert.ToString(Convert.ToInt32(ProdTotTxt) + ProdTotal);
in this code where i do mistak???
thanks in Advance
Jawad Khatri
|
|
|
|