How can I prevent ScintillaNET from destroying on Form.Close() (original) (raw)
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
Description
Hi,
I want to hide my form, not close. Here is my code for the FormClosing event:
private void HandleFormClosing(object sender, FormClosingEventArgs e) {
e.Cancel = true;
Hide();
}
However, the HandleDestroy event of Scintalla still gets called and the scintilla controls is no longer valid.
How can I make this to not destroy?