Skip to main content

How to show monetary value in a MaskedTextBox

  • April 17, 2015
  • 2 replies
  • 0 views

Confused There is a way to show the value a field pic 9(09)V99 in a MaskedTextBox? In my test the value is distorted.
I would like to SHOW the following result in MaskedTextBox. R$  1.500.25

Visual Cobol 2.2  .NET

Thanks,

2 replies

Chris Glazier
Forum|alt.badge.img+2

Confused There is a way to show the value a field pic 9(09)V99 in a MaskedTextBox? In my test the value is distorted.
I would like to SHOW the following result in MaskedTextBox. R$  1.500.25

Visual Cobol 2.2  .NET

Thanks,

This appears to be a limitation of the MaskedTextBox control in that the format is a fixed length and requires the same number of digits in order to format it correctly.

You might want to look at another post on this forum at:

community.microfocus.com/.../10425.aspx

which covers how to format a standard textbox control to use a currency format.


Confused There is a way to show the value a field pic 9(09)V99 in a MaskedTextBox? In my test the value is distorted.
I would like to SHOW the following result in MaskedTextBox. R$  1.500.25

Visual Cobol 2.2  .NET

Thanks,

Hi Cris, Unfortunately it was not possible to use MaskedTextBox.

I solved the problem thereby: (attached file)