Highlighted
Absent Member.
Absent Member.
1738 views

How to show monetary value in a MaskedTextBox

Jump to solution

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,

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: How to show monetary value in a MaskedTextBox

Jump to solution

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.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: How to show monetary value in a MaskedTextBox

Jump to solution

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.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: How to show monetary value in a MaskedTextBox

Jump to solution

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

I solved the problem thereby: (attached file)

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.