Beats HD Player
Beats Audio HD Player Design in C Sharp
Splash Screen
Coding of Player
using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WMPLib;
using AxWMPLib;
using System.Threading;
namespace Beats_Audio_Player_HD
{
public partial class Form1 : Form
{
public Form1()
{
Thread t = new Thread( new ThreadStart(suplashstart));
t.Start();
Thread.Sleep(5000);
InitializeComponent();
t.Abort();
}
public void suplashstart()
{
Application.Run(new Form2());
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog open = new OpenFileDialog();
open.Filter = "(mp3,wav,mp4,mov,wmv,mpg)|*.mp3;*.wav;*.mp4;*.mov;*.wmv;*.flv;*.mkv;*.avi;*.mpg|all files|*.*";
DialogResult result = open.ShowDialog();
if (result == DialogResult.OK)
{
// if (Path.GetExtension(open.FileName) == ".mp4")
axWindowsMediaPlayer1.URL = open.FileName;
}
}
private void closebutton_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void monoFlat_ThemeContainer1_Click(object sender, EventArgs e)
{
}
}
}
Splash Screen Coding
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Beats_Audio_Player_HD
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
progressBarX1.Increment(1);
if (progressBarX1.Value == 200)
{
timer1.Stop();
}
}
private void monoFlat_ThemeContainer1_Click(object sender, EventArgs e)
{
}
}
}
0 comments:
Post a Comment