private void openInANewWindowToolStripMenuItem_Click(object sender, EventArgs e) { updateSettings(); Playlist.playlistName = treeView1.SelectedNode.Text; LibraryView a = new LibraryView(true); a.Show(); treeView1.SelectedNode = treeView1.Nodes[0]; }