Re: Add items to Combobox Programming Software Development by Rogachev Hi buster2209, I guess you have to use another method for adding items. Please note, you can add items to your combobox when "SelectedIndexChanged" occurs. But before your combobox has not any items and index can't be changed..... Cheers Re: add items to combobox o binded to a dataset Programming Software Development by Mitja Bonca [QUOTE=AngelicOne;1487956]There's an error saying that the combobox is already b, inded to a datasource, thus cannot add new items. [/QUOTE] Add items to a dataSource, not to comboBox. When you have some control bind to a data source, you have to work then with the data source (inserting, updating, removing), not with the control. Mitja Re: add items to combobox o binded to a dataset Programming Software Development by taylby What I have done in the past is to create a datatable which you populate and manage yourself and then bind to that datatable. If you need to add items to the list then you add extra rows to the datatable and then refresh the contents of the list box / combo. Re: How to add items in ComboBox from mySQL Database Programming Software Development by Reverend Jim It helps if you post the error message, but to add items to a combobox the syntax is ComboBox1.Items.Add(string value) in your case ComboBox1.Items.Add(myReader("Uname")) How to dynamically add items to a control's property? Programming Software Development by Sheryl99 … control's property, a box comes up where I can add items -- in this case it will be field names. I need… to dynamically add these items to this form. The information will come from "… Datagridview combobox column add items Programming Software Development by PM312 I have a combobox with 5 coloums of which coloumn 1 is DataGridViewComboBoxColumn I want to populate / add items to DataGridViewComboBoxColumn with data from access database using datatable. i am not getting how to add items to DataGridViewComboBoxColumn. How can i do it. Thanks Re: Datagridview combobox column add items Programming Software Development by PM312 small correction on above post I have a **Datagridview** with 5 coloums of which coloumn 1 is DataGridViewComboBoxColumn I want to populate / add items to DataGridViewComboBoxColumn with data from access database using datatable. i am not getting how to add items to DataGridViewComboBoxColumn. How can i do it. Thanks php , arrays add items in the 'ide' element Programming Software Development by Jorge_19 …I need to add items in the '…; $element = $dom->createElement( $data['name'], $element_value ); // Add any attributes if ( ! empty( $data['attributes'] ) && …setAttribute( $attribute_key, $attribute_value ); } } // Any other items in the data array should be child elements foreach ( $… How to add items in ComboBox from mySQL Database Programming Software Development by monching Hello there, How to add items in combo box from mysql database? 'mySQL statement 'tryCatch method ComboBox1._______ = myReader.GetValue(myReader.GetOrdinal("Uname")) I'm trying use this: ComboBox1.items = myReader.GetValue(myReader.GetOrdinal("Uname")) but an error occured. Making a listview only add items horizontally Programming Software Development by ZeroZen …'m using a listbox. Everything works okay, but when I add items to the listbox and they find the right edge of… the listbox, it creates a new row and begins to add the images down there. Currently I'm using an array… How to Add Items to the "Send To" Menu in Windows Vista Hardware and Software Microsoft Windows by Adamsappleone [url]http://www.winhelponline.com/articles/98/1/How-to-Add-Items-to-the-Send-To-Menu-in-Windows-Vista.html[/url] Add items Programming Software Development by chxyz I want to add a new item to combobox at runtime. Actually in my form i am having a textbox,combobox . After entering item name in textbox the new item has not to added to the combobox items list at runtime..give me the solution....post code plz Re: Add items Programming Software Development by ddanbe Just use something like `comboBox1.Items.Add("My new combo item");` Re: Add items Programming Software Development by brainbox Hey The above code will work if you want to hardcode your combo box values, however, if you want combo box to have the values you enter in a text box from the form then, you can do the following. comboBox1.Items.Add(textBox1.text); HTH BB-SA Re: how add items in combo box but without repetition Programming Software Development by yansthais Thanks for your valuable sharing of combobox add items. Re: add items to combobox Programming Software Development by Ehtesham Siddiq ….Items.Add("Sunday") combobox1.Items.Add("Monday") combobox1.Items.Add("Tuesday") combobox1.Items.Add("Wednesday") combobox1.Items.Add("Thursday") combobox1.Items.Add Re: add items to combobox Programming Software Development by lethalmarc ….Items.Add("Sunday") ComboBox1.Items.Add("Monday") ComboBox1.Items.Add("Tuesday") ComboBox1.Items.Add("wednesday") ComboBox1.Items.Add("Thursday") ComboBox1.Items.Add Add Items to Listview Programming Software Development by sonia sardana …Integer For lCount = 1 To 5 ListView1.Items.Add(lCount.ToString) Next Catch ex As Exception MsgBox…for (lcount = 0; lcount <= 5;lcount ++ ) { listView1.Items.Add( lcount.ToString); } } [/code] I m getting Errors [B] Error… Re: add items to combobox Programming Software Development by emirhan55553 ….Items.Add("Sunday") combobox1.Items.Add("Monday") combobox1.Items.Add("Tuesday") combobox1.Items.Add("Wednesday") combobox1.Items.Add("Thursday") combobox1.Items.Add Re: Add Items to Listview Programming Software Development by DdoubleD …for (int lCount = 0; lCount < ListView1.Items.Count; lCount++) MessageBox.Show(ListView1.Items[lCount].Text) [/code] to replace: [code=vb] …Dim lCount As Integer For lCount = 0 To ListView1.Items.Count MsgBox(ListView1.Items(lCount).Text) Next [/code] NOTE: Not sure how… Add items to a list Box From Sql Server Programming Software Development by Trebron …then I want to add to the list box items so here is …StoredProcedure Dim Param1 As SqlParameter = SPName.Parameters.Add("@ICDCode", SqlDbType.Char, 5)…New SqlDataAdapter(SPName) DbAdapter.Fill(DTptntData) lstDiag.Items.Add(DTptntData) Catch ex As Exception MsgBox(ex… Re: Add Items to Listview Programming Software Development by kvprajapati Use [b]parenthesis[/b]. [code] listView1.Items.Add(lcount.ToString()); [/code] Re: Add items to Combobox Programming Software Development by nssltd …{ if (comboBox1.Text == "TEST") { comboBox1.Items.Add("TEST A"); } else { comboBox1.Items.Add("TEST B"); } } catch { MessageBox.Show… Re: Add items to Combobox Programming Software Development by Zinderin … I am under the impression the code is; [CODE]comboBox1.Items.Add("NAME");[/CODE] but this doesn't work. The…'s textbox until you (the user) select one of the items you've added from the drop-down options, which then… is actually in the in the ComboBox's list of items and the word/string you want displayed. Re: Add items to Combobox Programming Software Development by buster2209 …(); } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { comboBox1.Items.Add("test"); comboBox1.Items.Add("test2"); } } }[/CODE] It is no more… Re: Add items to Combobox Programming Software Development by Rogachev try another way: [CODE] public Form1() { InitializeComponent(); this.ComboBoxPopulate(); } private void ComboBoxPopulate() { comboBox1.Items.Add("test"); comboBox1.Items.Add("test2"); } [/CODE] Cheers Re: Add items to a list Box From Sql Server Programming Software Development by Trebron I fixed it myself thanks anyway I added the below line lstDiag.Items.Add(DTptntData.Rows(0).Item(0) & "-" & DTptntData.Rows(0).Item(1)) Add items to Combobox Programming Software Development by buster2209 I can't items to my combobox I am under the impression the code is; [CODE]comboBox1.Items.Add("NAME");[/CODE] but this doesn't work. The program compiles correctly but nothing is displayed in the box. What am I doing wrong? Add URL to Webbrowser1 from dataset. Programming Software Development by CooRay ….DataGridView1.DataSource = ds.Tables("item") 'add items from XML files to listbox MainForm.articleListBox.DataSource = … "title" n(MainForm.articleListBox.Refresh()) 'add description from selected news article to textbox MainForm.descritptionListBox.… Re: Add items to Combobox Programming Software Development by Zinderin Again, as I said above ... all you are doing is adding items to the drop-down list of the combobox, you are not changing the text displayed. Are you saying [B]test[/B] and [B]test2[/B] are not being added to the drop-down list of the combobox?