Hi
I have several ultraNumericEditors on a form. I have set the minimum and maximum values for the controls as -500 to 500. The functionality I want to implement is when the spin button is clicked and the value of the control is NULL, the value of the control should be 0 rather than -500.
I think the only way to do this is to implement EditorSpinButtonClick. Is there some sample code on how to implement EditorSpinButtonClick event?
Let me know.
Cheers
James
winsql said:I have set the minimum and maximum values for the controls as -500 to 500.
ultraNumericEditor1.MinValue = -500;ultraNumericEditor1.MaxValue = 500;ultraNumericEditor1.Value = 0;
Hi Georgi
Thanks for your reply. I have already set the MinValue and MaxValue properies as you suggested. I have also enabled the spin buttons.
The value of the numeric editor is initially set to NULL i.e. there is no value because none has yet been selected. The problem I have is that when the spin are clicked the value of the ultraNumericEditor1 starts a -500 (MinValue). This is not a sensible value for the application and I want to override this and stat at 0.
There is aprevious post that suggest turning off the default spin buttons and implementing the EditorSpinButtonClick event. Is there any sample code on how to do this?