Find Chart Control by it's UniqueID

Created at 11 Aug 2023, 06:22
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TraderExperto's avatar

TraderExperto

Joined 07.06.2019

Find Chart Control by it's UniqueID
11 Aug 2023, 06:22


Hey Guys i'm in the middle of a project that requires that i find one specific Chart Control. I created a function that every time a chart control is created it's uniqueid will be stored to use it later. Normally in a C# application we can find a Control by it's name but on ctrader we have the UniqueID. So I imagined that the code would be similar to this.

 

TextBox tbx = this.Controls.Find("textBox1", true).FirstOrDefault() as TextBox;
tbx.Text = "found!";

 


@TraderExperto