Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmTextbox Changes values when format type
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01322600
Message ID:
01323213
Views:
8
Brian,

>My application has several mmtextboxs that are displaying currency values that may be edited.The textbox’s format type is set to “C”. After I change the values and tab to the next control the previous value is put back in the textbox. I put a break point in the validateing event of one of the textboxs and traced it to the following mm code
>protected virtual void FormatEventHandler(object sender, ConvertEventArgs cevent)
> {
> if (this.Format != null)
> {
> cevent.Value = mmString.GetText(cevent.Value, this.NullText,this.Format,this.FormatInfo,this.oTypeConverter);
> }
> }
>
>
> cevent.Value is the old value not the amount that I entered. I cant tell where cevent is getting its value from but it is not the controls current value.
>If I remove the Format “C” property and set it to nothing then the value works fine.

I am able to reproduce the error and am in the process of tracking it down.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform