Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
GeneralWM_COPY_DATA Pin
berndg14-Jul-04 6:00
berndg14-Jul-04 6:00 
GeneralRe: WM_COPY_DATA Pin
ERobishaw14-Jul-04 7:29
ERobishaw14-Jul-04 7:29 
GeneralChange a Window text size Pin
Dave@keyspell14-Jul-04 5:41
sussDave@keyspell14-Jul-04 5:41 
GeneralRe: Change a Window text size Pin
Heath Stewart14-Jul-04 5:55
protectorHeath Stewart14-Jul-04 5:55 
GeneralRichTextBox.Rtf property argument exception Pin
partyganger14-Jul-04 4:10
partyganger14-Jul-04 4:10 
GeneralRe: RichTextBox.Rtf property argument exception Pin
LongRange.Shooter14-Jul-04 5:44
LongRange.Shooter14-Jul-04 5:44 
GeneralRe: RichTextBox.Rtf property argument exception Pin
Heath Stewart14-Jul-04 5:47
protectorHeath Stewart14-Jul-04 5:47 
GeneralComboBox problems... :( Pin
Radoslav Bielik14-Jul-04 3:41
Radoslav Bielik14-Jul-04 3:41 
Hi everyone,

I'm having some serious issues with the Windows ComboBox control. I'm using it inside a 3rd party wizard control (which I found here on CP) and when the page of the wizard where this ComboBox is is loaded, it gets populated with items - using the following code:

<br />
// md.Topics is an ArrayList of TopicData classes<br />
// TopicData class has 2 public properties, TopicID, TopicTitle<br />
if(md.Topics.Count>0)<br />
{<br />
	this.comboBoxTopicsDel.ValueMember="TopicID";<br />
	this.comboBoxTopicsDel.DisplayMember="TopicTitle";<br />
	this.comboBoxTopicsDel.DataSource=md.Topics;<br />
}<br />
else<br />
{<br />
	this.comboBoxTopicsDel.DataSource=null;<br />
}<br />


This works fine everytime the page containing the ComboBox loads, until the moment when an item is deleted from the Topics ArrayList. After that, the ComboBox will only show TopicData for each item, even if its DisplayMember and ValueMember are set correctly.

Am I doing something stupid? What am I supposed to do before re-binding the ComboBox to ist data source when this happens?

Thanks in advance Sigh | :sigh: (insert a lot of clueless smileys here)

Rado


Radoslav Bielik
http://www.neomyz.com/poll [^] - Get your own web poll

GeneralRe: ComboBox problems... resolved (probably) Pin
Radoslav Bielik14-Jul-04 5:12
Radoslav Bielik14-Jul-04 5:12 
Questionhow to check language of Outlook Pin
Stephan Wright14-Jul-04 3:17
Stephan Wright14-Jul-04 3:17 
AnswerRe: how to check language of Outlook Pin
Nick Parker14-Jul-04 3:39
protectorNick Parker14-Jul-04 3:39 
GeneralRe: how to check language of Outlook Pin
Stephan Wright14-Jul-04 4:00
Stephan Wright14-Jul-04 4:00 
GeneralRe: how to check language of Outlook Pin
Nick Parker14-Jul-04 5:11
protectorNick Parker14-Jul-04 5:11 
AnswerRe: how to check language of Outlook Pin
Ivaylo®14-Jul-04 5:18
Ivaylo®14-Jul-04 5:18 
GeneralRe: how to check language of Outlook Pin
Nick Parker14-Jul-04 6:21
protectorNick Parker14-Jul-04 6:21 
GeneralRe: how to check language of Outlook Pin
Stephan Wright14-Jul-04 21:25
Stephan Wright14-Jul-04 21:25 
GeneralRe: how to check language of Outlook Pin
Ivaylo®14-Jul-04 21:56
Ivaylo®14-Jul-04 21:56 
GeneralWindowsForm Styles too Limited Pin
3green14-Jul-04 3:04
3green14-Jul-04 3:04 
GeneralRe: WindowsForm Styles too Limited Pin
Gary Thom14-Jul-04 4:24
Gary Thom14-Jul-04 4:24 
GeneralInternet Explorer, Flash and OnClick message... Pin
Alex Getman14-Jul-04 1:50
Alex Getman14-Jul-04 1:50 
GeneralRe: Internet Explorer, Flash and onclick message... Pin
Nick Parker14-Jul-04 3:21
protectorNick Parker14-Jul-04 3:21 
GeneralRe: Internet Explorer, Flash and onclick message... Pin
Alex Getman14-Jul-04 4:16
Alex Getman14-Jul-04 4:16 
GeneralRe: Internet Explorer, Flash and onclick message... Pin
Nick Parker14-Jul-04 4:50
protectorNick Parker14-Jul-04 4:50 
GeneralSetup and Installation Project Pin
Praveen Nayak14-Jul-04 0:19
Praveen Nayak14-Jul-04 0:19 
GeneralRe: Setup and Installation Project Pin
Heath Stewart14-Jul-04 5:11
protectorHeath Stewart14-Jul-04 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.