private void NewFolderButton_Click(object sender, EventArgs e) { using (CreateFolderDialogue createFolderForm = new CreateFolderDialogue()) { createFolderForm.ShowDialog(); if (createFolderForm.DialogResult == DialogResult.OK) { this.FavouritesComboBox.Items.Add(createFolderForm.newFavouriteDirectoryInfo); this.FavouritesComboBox.SelectedIndex = this.FavouritesComboBox.Items.Count - 1; } } }