using System; using System.Linq; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace abPlayer { public partial class frmMediaProps : Form { String[] props = null; public frmMediaProps() { InitializeComponent(); } public DialogResult ShowDialog(String path) { lblName.Text = path; Cursor.Current = Cursors.WaitCursor; try { props = new cMP3Info(path).MediaProperties; } catch { props = new String[0]; } Cursor.Current = Cursors.Default; return base.ShowDialog(); } private void picOK_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; } private void frmMediaProps_Paint(object sender, PaintEventArgs e) { SizeF strWH = e.Graphics.MeasureString("0", Font); for (int i = 0; i < props.GetLength(0); i++) { e.Graphics.DrawString(props[i], Font, new SolidBrush(Color.White), 2, lblName.Height + 14 + i * (strWH.Height + 3)); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)