I have overridden the OnVisibleChanged method:
protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); this.Visible = false; } that is, when the program is loaded, the form is immediately hidden.
How can I then call the same method, but only vice versa, so that the form shows?
I tried this:
this.Show(); this.Visible = true; All is in vain, well, it is understandable, because OnVisibleChanged is OnVisibleChanged , and its OnVisibleChanged is false .
Hide / show form does not suit me to hide / show.