Skip to main content

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,

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)