Start New Discussion Reply to this Discussion 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?
45 Minutes
Discussion Span
Related Article: My VB.NET application doesn't work
is a solved VB.NET discussion thread by archelle that has 2 replies, was last updated 1 year ago and has been tagged with the keywords: vb.net.
trowe
Newbie Poster
4 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
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?
I should have also stated that FormattingEnabled is set to True.
trowe
Newbie Poster
4 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page generated in 0.0522 seconds
using 2.65MB