I have the script (indicator), which put the button on the chart menu and at the button click the windows form created, on which controls are drawn based on market date.
The problem is that if I click the button first time, the form is created controls are created and all is good. But at the second button click the empty form appears. I close the form by "X" button of the form.
I'm newbie in c# code and thinking on direction of controls killing at the form close event, but nothing happens when i close the form. I just put the following method in the script.
private void form1_FormClosing(object sender, FormClosingEventArgs e)
{
//do something..
}
May be I should call it from the other methods, but from which one?
Please, help
Thank you in advance
Comment