Can't move symbol type elements on runtime screen using VSTA

Can't move symbol type elements on runtime screen using VSTA

Hi,

I need to dynamically rearrange and hide/unhide buttons according to certain configurations by PLC variables on the runtime screen.

I have successfully moved elements on the runtime via the following commands with elements such as Static Textbox.

zenonElements.Item(i).Move(posXStart, 10, posXStart + 70, 80);
zenonElements.Item(i).Update();

But when I apply this code to elements copied from symbol library, this code does not work.

Is it true that "Move" command does not work for symbols?

Thank you for your help.


This is a migrated post! Originally posted on 24.05.2021 by user elmane. Please be aware that information can be outdated.