private void addplaylistbtn_Click(object sender, EventArgs e) { addplaylist frm = new addplaylist(); frm.ShowDialog(); playlistloadingindicator.Visible = true; playlistloadingindicator.Active = true; showplaylists(); playlistloadingindicator.Active = false; playlistloadingindicator.Visible = false; }