473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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?
Jan 19 '12 #1
1 2516
I should have also stated that FormattingEnabled is set to True.
Jan 19 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: AV | last post by:
Hallo any idea why the following code doesn't work? ////////////////////////////////// function myfunc(){ with(this){ prop="hallo world"; } }
7
by: nick | last post by:
I have the following code: var ocevent = function(v) { alert('u clicked '+v); return false; }; var items = { "002.jpg": {text:"002", href:"#", click:function(){return
2
by: Norm | last post by:
Hi, In the Startup properties dialog, I unchecked the Display Database Window. When I open my file, the database window doesn't automatically open but it is in an icon on my windows toolbar. If...
1
by: sandman | last post by:
I set the MinimumSize property on my form but it doesn't seem to work. I can still resize the form to any size I want. What I'm trying to do is prevent the buttons from vanishing when the form is...
3
by: Robert A. van Ginkel | last post by:
In news:OZ0W9RsdDHA.2432@TK2MSFTNGP10.phx.gbl... I ask the question how I can see if all the data is on the other side of the connection. I got as answer that I should use the blocking property. I...
1
by: TT (Tom Tempelaere) | last post by:
Hi there, I made a custom drawn ComboBox. The DrawItem event handler is (explanation follows) <code> private void OnDrawItem ( object sender, System.Windows.Forms.DrawItemEventArgs e ) {
0
by: Andreas Klemt | last post by:
Hello, I have this page.aspx ---------- <%@ Register TagPrefix="uc1" TagName="Userdetails" Src="Userdetails.ascx" %> ... <asp:datagrid id="dgTest" runat="server" autogeneratecolumns="False" >...
1
by: Aaron Ackerman | last post by:
I am using the latest Infragistics suite for .NET. I am using a tree view controlso that when i select a particular item it will brin up the specified URL in the appropriate pane. When I trigger...
0
by: cxnoel | last post by:
I created my own form which inherits from a Windows form. But any component that I placed on my form with dock property setted to FILL doens't refill the area when I resize my form. Any clue? ...
0
by: wpm | last post by:
I have a combobox with the following properties set in Visual Basic 2005 AutoCompletMode : Suggest AutoCompletSource : Listitems DropDownStyle : DropDown I need to use a keypress event for the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.