thanks for the reply
here is the code for the Combo boX Creation .
for(int i = 0; i < Number; i++)
{
this.List.Add( new System.Windows.Forms.ComboBox() );
((System.Windows.Forms.ComboBox)this.List[i]).Location = new
System.Drawing.Point(180, 36 + i * 40);
((System.Windows.Forms.ComboBox)this.List[i]).Name = "UC_Combo" +
i.ToString();
((System.Windows.Forms.ComboBox)this.List[i]).Size = new
System.Drawing.Size(184,20);
((System.Windows.Forms.ComboBox)this.List[i]).TabIndex = i + 2;
((System.Windows.Forms.ComboBox)this.List[i]).Text = String.Empty;
((System.Windows.Forms.ComboBox)this.List[i]).Tag = this.Count;
((System.Windows.Forms.ComboBox )this.List[i]).DropDownStyle =
System.Windows.Forms.ComboBoxStyle.DropDownList;
this.Form1.Controls.Add( ((System.Windows.Forms.ComboBox)this.List[i]) );
}
Thanks
Sylesh
> It sounds like all the items in your comboArray point to the same
> instance of the ComboBox instead of different instances.
[quoted text clipped - 3 lines]
>
> Chris
Chris - 29 Dec 2004 16:07 GMT
It looks like I lost my bet. I can't see anything wrong with that
code. What kind of object is this.List? Are you using any kind of
data binding? What does the SelectedItem event code look like?
It's very puzzling.
Chris