Using c1numericedit version 2.0.20071.32002 in a .net 2.0 application, VB.NET 2005.
Placing control into a tablelayoutpanel at run time with this code:
(sSQLType =
tbnew.Name = sCName
tbnew.Width = (8 * 6) + 25
tbnew.EditMask = smask
tbnew.VisibleButtons = C1.Win.C1Input.DropDownControlButtonFlags.DropDown
tbnew.Anchor = _
tbnew.DataBindings.Add(
tlpEdit.Controls.Add(tbnew, 1, iTLPRowCnt - 1)
TT1.SetToolTip(tbnew, sHint)
smask has been set to, for one field,
!990.^99
990.^99
^990.99
i tried to enter 3.27 into the field and receive a popup of "prevalidation error." The only way to enter this is "00327" or "003.27"
But I thought that 9 was an OPTIONAL digit.
I could have 105.97, 3, 2.82, 15.8 or any other combination of 1-3 digits to left and 0-2 digits to the right of decimal. Your tutorial gaves me no help whatsoever in decoding the precise and complete and exact syntax of the edit mask.
Where is the comprehensive tutorial and what have I done wrong with the above mask attempts?
Furthermore, if someone makes an incorrect entry, there is no way to close the form and abandon changes unless one enters what the edit mask is telling the control to expect. How do I correct that anomaly?
ThanksJohn