Hi there,
Is there a way to change a buttonsright text property without casting?
I mean, why this property is not directly available?
Me.UltraNumericEditor_0.ButtonsRight("Name").text = "dd"
(of course, this is not possible!)
Thanks in advance!
No, there is no way to do this without casting. The reason for this is that not all editor buttons support a text property; the ones that do support a Text property derive from EditorButton (as opposed to EditorButtonBase), so you could check for that class if you want to be more general. The only button that doesn't support a Text property that I am aware of is the SpinEditorButton.
-Matt
Thanks Matt for the prompt and clear response.
Honestly, that's gonna make me to code a lot!