Update combobox
hi, I have a problem with combobox. I create a combobox in form1 this combobox display a list from the database. in addition i create another form2 makes a update on the table but the combo box list does not do this update. Can someone help me to solve this?


Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 13, 2015, 8:57 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 13, 2015, 9:06 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 13, 2015, 9:15 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 13, 2015, 7:55 PM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 14, 2015, 12:23 AM EDT
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2(this);
frm.Show();
}
}
public partial class Form2 : Form
{
Form _frm;
public Form2(Form frm)
{
_frm=frm;
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form1 objMain = (Form1)_frm ;
objMain.comboBox1.DataSource = UpdatedSQLDataSource;
}
}
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 13, 2015, 9:01 AM EDT
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 13, 2015, 9:10 AM EDT
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 13, 2015, 1:50 PM EDT
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 14, 2015, 12:08 AM EDT
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 14, 2015, 1:35 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 14, 2015, 1:43 AM EDT
Hi,
If you found this useful Please Accept this as Answer .