private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Pen pen = new Pen(ForeColor); if (wave != null) { if (m_DrawWave) { sbpMainPanel.Text = "Drawing .WAV file..."; wave.Draw(e, pen); sbpMainPanel.Text = "Finished drawing .WAV file..."; } } }