Vb.net combobox formatstring property doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trowekamp
    New Member
    • Jan 2012
    • 2

    Vb.net combobox formatstring property doesn't work

    I have a form created in VB.net. It is used to get some information form a user. The form is not bound to any data source.

    A combobox on this form is used to enter a cost. I want the value entered by the user to be displayed using currency format. I have used the Format String Dialog that opens from the ellipses button on the FormatString property of the combobox and selected Currency. This put C2 into the FormatString property.

    When I run my application, this format is not applied to the value entered into the combobox at the time the number is entered or when I leave the combobox.

    What am I missing?
  • trowekamp
    New Member
    • Jan 2012
    • 2

    #2
    I should have also stated that FormattingEnabl ed is set to True.

    Comment

    Working...