You are using fd.ShowDialog() twice. Try eliminating the first one.