Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,769 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    30 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    943 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    10 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    7 views
    0 likes
    Last Post rocketman7  
    Working...
    X