• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What´s the NT8 equivalent to Forms.Closing event?

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

    What´s the NT8 equivalent to Forms.Closing event?

    Is there an event for NT8 closing/closed?

    #2
    Hello FREEN,

    Thank you for the question.

    Not specifically, what is the overall use case here? The windows forms events you may have previously used would not be something which has a specific NinjaScript alternative, you would instead be looking for a WPF alternative to those actions. This is something you can use google to search for C# alternatives in contrast to WPF programming.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      My objective is to close some background processes as i close NT8. Hence a closing (as in application closing) event would be in handy.

      Comment


        #4
        Hello FREEN,

        Thank you for clarifying.

        In the situation of using a NinjaScript object, it would be suggested to use the objects OnStateChange and its Terminated state to handle this type of use. If you are using a type without OnStateChange or are doing something custom where that does not apply it would be up to you to handle that case in your own custom way.

        If you were previously using the form and the windows forms events, the alternative would be wpf events however this is not something which is documented for either platform. You can research this topic further on the support forum by searching for the WPF event name you wanted to use/control you wanted to target. You can find more relevant help about WPF events in external WPF education resources.

        You can also see the following post about adding a menu to the control center for some ideas of targeting specific windows: https://ninjatrader.com/support/foru...-controlcenter


        Please let me know if I may be of additional assistance.




        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks for pointing me in the right direction Jesse!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by MARTIN MARTIN, Yesterday, 01:01 PM
          3 responses
          39 views
          0 likes
          Last Post MARTIN MARTIN  
          Started by NickyD, Today, 11:42 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by cupir2, Today, 11:25 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by 7robert, Today, 11:15 AM
          2 responses
          7 views
          0 likes
          Last Post 7robert
          by 7robert
           
          Started by meandthetrio, Today, 10:52 AM
          0 responses
          11 views
          0 likes
          Last Post meandthetrio  
          Working...
          X