• 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

Only one single instance of AddOn?

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

  • gurko
    started a topic Only one single instance of AddOn?

    Only one single instance of AddOn?

    Hi,

    I have created a custom AddOn and would like to forbid more than one instance of the thing. Is there a setting I can use or what is the best way to achieve that?

    Thank you,
    Stefan.

  • gurko
    replied
    Hi Chelsea,

    thank you for your sample code, I understand the method. Clean solution, great!

    Kind regards,
    Stefan.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello Stefan,

    This might require a static variable that holds that window object instance. This would only be set when null.

    https://msdn.microsoft.com/en-us/library/ff650316.aspx

    While static variables and classes are not supported by NinjaTrader support, they are possible to use.

    See an example I made.
    http://ninjatrader.com/support/forum...980#post442980

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by digibob, Today, 02:47 AM
2 responses
13 views
0 likes
Last Post NinjaTrader_Kate  
Started by mntemel, Today, 03:31 PM
2 responses
11 views
0 likes
Last Post mntemel
by mntemel
 
Started by mrlucky1x, Today, 03:14 PM
1 response
3 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by ninjo, Today, 02:42 PM
3 responses
8 views
0 likes
Last Post NinjaTrader_Jesse  
Started by Longhornmark, Today, 01:13 PM
7 responses
21 views
0 likes
Last Post NinjaTrader_ChrisL  
Working...
X