PC Review


Reply
Thread Tools Rate Thread

ComboBox bug??

 
 
=?Utf-8?B?QXJzaGFkIFN5ZWQ=?=
Guest
Posts: n/a
 
      10th Dec 2006
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgUml0Y2hpZSBbQyMgTVZQXQ==?=
Guest
Posts: n/a
 
      10th Dec 2006
What have you set your DisplayMember to? FormattingEnabled applies to the
DisplayMember property.

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


"Arshad Syed" wrote:

> 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

 
Reply With Quote
 
=?Utf-8?B?QXJzaGFkIFN5ZWQ=?=
Guest
Posts: n/a
 
      10th Dec 2006
OK. My items are loaded at design time in the Properties (Items/Collections).
That is why it doesn't work. As per your reply, I would need a datasource for
this to work. Thanks!

Arshad

"Peter Ritchie [C# MVP]" wrote:

> What have you set your DisplayMember to? FormattingEnabled applies to the
> DisplayMember property.
>
> --
> Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
> http://www.peterRitchie.com/blog/
> Microsoft MVP, Visual Developer - Visual C#
>
>
> "Arshad Syed" wrote:
>
> > 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Problem: Combobox.setfocus fires combobox.OnClick event Hal Levy Microsoft Access Form Coding 5 31st Jul 2009 03:54 AM
delete fields in subform combobox after main form combobox is chan deb Microsoft Access 4 24th Jan 2008 10:09 PM
ComboBox.Items.Clear() causes the selection of Text inside the edit of the ComboBox Nomasnd Microsoft Dot NET Framework Forms 1 27th Sep 2006 06:32 PM
HowTo? shift focus in VBA IDE between Object combobox, procedure combobox, and Code window Malcolm Cook Microsoft Access 0 11th Oct 2005 03:42 PM
Bug: Combobox.dropdown = True during Form.New() causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework Forms 1 12th Feb 2004 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:41 AM.