ArshadSye replied...
10-Dec-06 11:48 AM
I dropped a ComboBox on a WinForm. I then set FormattingEnabled to true and
the FormatString for Currency in the Designer. I then added a couple of
numeric items to the Items Collection in the Designer:

3333
4444

Now when I run this, I expect to see the $ sign since I used the Currency
format, but I don't!!

Please help!!

Thanks,
Arshad
ComboBox
(1)
Dropped
(1)
WinForm
(1)
FormattingEnabled
(1)
FormatString
(1)
Currency
(1)
Designer
(1)
Couple
(1)

.NET Framework - ComboBox bug??

Asked By pvdg42
10-Dec-06 06:08 PM
Look up the FormattingEnabled property of the ComboBox class in your MSDN
help.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.listcontrol.formattingenabled.aspx

http://msdn2.microsoft.com/en-us/library/system.windows.forms.listcontrol.displaymember.aspx
Create New Account
help
VB .Net 2008 Express] ComboBox.SelectedValue et ComboBox.Sorted .NET Framework Bonjour, Je renseigne 1 combobox ainsi : Sub remplit_combobox(ByVal ComboBox As ComboBox, ByVal DataSource As DataTable, ByVal DisplayMember As String, ByVal ValueMember As String, ByVal DropDownWidth As Integer) With ComboBox .DataSource = DataSource .DrawMode = DrawMode.Normal .DisplayMember = DisplayMember .ValueMember = ValueMember .DropDownWidth = DropDownWidth .FormattingEnabled = True .SelectedValue = -1 End With End Sub Quand je sélectionne 1 donnée dans le combobox, j'ai bien la bonne valeur dans SelectedValue. Par contre, si le propriété Sorted est garder les données triées ? Merci d'avance pour votre aide, Stéphane. VB.NET - French Discussions ComboBox.SelectedValue (1) ArgumentException (1) DrawMode.Normal (1) DataColumn (1) DataTable (1) ComboBox (1) VB (1
ComboBox Paste .NET Framework Hi How can i disable Paste on ComboBox? ComboBox DropDownStyle is DropDown. ComboBox must accept only numbers. I know how to handle keypress event to accept only digits, but how to disable paste? Best regards; Mex C# Discussions DropDownList (1) ComboBox (1) WndProc (1) DropDownStyle (1) DropDown (1) Tarek (1) Mex (1) Keypress (1) Mex, Well you can subclass the ComboBox and handle the WM_PASTE message in your overriden WndProc method. However, I would say that DropDownList, i think its better. - -- -- -- -- -- Tarek M. Siala Software Developer http: / / tarksiala.blogspot.com keywords: ComboBox, Paste description: Hi How can i disable Paste on ComboBox ComboBox DropDownStyle is DropDown. ComboBox must accept only numbers. I know how to handle keypress
ComboBox binding to DataTable. SelectedValue problem. . . .NET Framework Hi guys, I have a comboBox binded to DataTable: comboBox.DataSource = MyDataTable; comboBox.ValueMember = "id"; comboBox.DisplayMember = "id"; Than in my code I need id = 3 to be selected in the comboBox. So I have a code: comboBox.SelectedValue = 3; I don't have any event or any code after that may change the SelectedValue, but in result I get wrong id shown in the comboBox!!! Does anybody meet such a problem? How can I resolve it? What's wrong here