Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
How set global default values of properties
posted

Hey there,

i'm a bit wondered, that nobody asked this before, or i'm just to blind to find this topic...

Every IG Control has some properties set to "Default". How i can set this default value in a global project scale?

My intention is, to change the property "AutoCompleteMode" of all "UltraComboEditor" and "UltraCombo" to "SuggestAppend". All controls got as value "Default" in this property.

This is a change in a pretty big project, so i don't want to change this for every control in every single form.

Thank you :)

Parents
  • 469350
    Verified Answer
    Offline posted

    One potential approach you could take here that would minimize the amount of code you need to change would be to derive a control from UltraComboEditor and then set this property (and any others you want) in the Controls constructor. That way, you only have to set the property once, and then just do a Find/Replace to change the type from UltraComboEditor to your derived type without any other code changes. 

Reply Children