How do I prevent an UltraNumericEditor control from getting focus?
I have set the control Read Only, but that doesn't seem to prevent focus.
If I catch the Enter event, I can give focus to a different control. However, if I do that the UltraNumericEditor control loses it's formatting!
The FormatString I have on the control is $###,###,###. With a value of 1,000, it displays properly '$1,000'. When I click on the control it changes to '1000'. Focus is given to another control, but the text stays unformatted.
Suggestions?
Hello Sjreed,
sjreed said:How do I prevent an UltraNumericEditor control from getting focus?
sjreed said:The FormatString I have on the control is $###,###,###. With a value of 1,000, it displays properly '$1,000'. When I click on the control it changes to '1000'. Focus is given to another control, but the text stays unformatted.
More details you could find at: http://help.infragistics.com/Help/NetAdvantage/WinForms/2013.1/CLR4.0/html/Infragistics4.Win.UltraWinEditors.v13.1~Infragistics.Win.UltraWinEditors.UltraNumericEditorBase~MaskInput.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2013.1/CLR4.0/html/Infragistics4.Win.UltraWinEditors.v13.1~Infragistics.Win.UltraWinEditors.UltraNumericEditorBase~FormatString.html
Let me know if you have any questions.
Regards
Don't know why I didn't think of Enabled=false. That took care of it. Thanks!
BTW...Setting MaskInput to the FormatString gave me an Invalid Property Value error. However, that is irrelevant since Enabled=false took care of the issue.