Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Do not draw form's controls at second time the form activation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Do not draw form's controls at second time the form activation

    Hello NT Support and others --

    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

    #2
    Alex_bbfg,

    This is unsupported programming with NinjaScript and would not be able to provide assistance.

    However, I will leave this thread open for any of our forum users to assist in helping you with this issue.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    23 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    13 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    8 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    10 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X