foreach (PBObjLib.Symbol symbol in Trend1Display.Symbols) Trend1Display.Symbols.Remove(symbol.Name);
Thanks for reply.
For me works only this :
for (short i = Define_Trend.TraceCount; i >= 1; i--)
Sorry for the late reply - does this mean you cannot remove a symbol via Symbols.Remove(<name of symbol>)?
Does your code act as a workaround for that problem and satisfy your requirement or do you have an issue that still needs a solution?
What version of PB are you using? Some older versions of PB had a bug where some non-maximized symbols would paint even if a symbol was maximized.
Also, if you want to make the trend full-screen without affecting what is shown/hidden, use:
Trend1.Height = ThisDisplay.ViewHeight
Trend1.Width = ThisDisplay.ViewWidth
Trend1.Top = ThisDisplay.ViewTop
Trend1.Left = ThisDisplay.ViewLeft
because maximizing a trend automatically sets the trend to show all trend components.
Thanks for question.
It is solved by doing in another way.
I just spent a lot of time in trying different coding and one worked out.
In fact, what I did is just adjusted the exact size of Display to my form.
Got your idea, could be better to use this kind.