private void settingsButton_Click(object sender, EventArgs e) { AdminProfileSettings settings = new AdminProfileSettings(); settings.Show(); Hide(); }
private void settingsButton_Click(object sender, EventArgs e) { AdminProfileSettings settings = new AdminProfileSettings(); settings.Show(); Hide(); if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); pictureBox1.Image = null; } }