How i change in 100 TextBox fields the property TextDeached from true to false?

Posted by: mww on 26 March 2018, 11:02 am EST

    • Post Options:
    • Link

    Posted 26 March 2018, 11:02 am EST

    Hello,

    after the Update to Windows 10 dont function my c1TextBox fields. I mus Change the Property TextDeached from false to true.

    But i have more then 100 of this boxex. in different forms.

    What is the best way for Change in all forms al Textboxes?

    Thanks alot for ideas.

    Many Greatings

  • Posted 27 March 2018, 2:58 am EST

    Hi Markus!

    It could be easy if all these C1TextBox instances were inherited from a single C1TextBox control. In that case, you would simply need to change the base class property.

    But in your current situation, there is nothing much that I can do. You need to change this property manually in each form.

    Best regards,

    Meenakshi

  • Posted 27 March 2018, 10:44 am EST

    There are two different approaches to solve your problem.

    The first is to create a “base form” and change all your forms to inherit from that base form.

    Then in the constructor of the base form after the Initialiser, create a function to loop through

    all controls on the form looking for C1TextBox and have that function change the detached property.

    A better approach would by to create a factory method that would create an instance of the form type that you pass in. The factory method would instantate the form, loop through controls, look for type C1TextBox, set detached and then return the instantiated form to the calling method.

    Hope this helps

    Gerry

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels