I have a form that needs to be shown by clicking on the button in the main form, and I want users to close the second form, and the main form is displayed again in the center of the screen. I used the codes below for this:
private void button_Click(object sender, EventArgs e) { this.Hide();
these commands do what I want, but the problem is that after closing the second form, the main form will be shown with a small jump, like blinking! (It is not continuous, it is only on the first.) I want to do it smoothly, without any blinks at the first. How is this possible?
Thanks in advance.
source share