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 SPosted Oct 14, 2015, 5:43 AM
Hi,
If you found this useful Please Accept this as Answer .
abdelwaheb ammarPosted Oct 14, 2015, 5:35 AM
Priyaranjan K SPosted Oct 14, 2015, 4:23 AM
{
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 ammarPosted Oct 14, 2015, 4:08 AM
Priyaranjan K SPosted Oct 13, 2015, 11:55 PM
abdelwaheb ammarPosted Oct 13, 2015, 5:50 PM
Priyaranjan K SPosted Oct 13, 2015, 1:15 PM
abdelwaheb ammarPosted Oct 13, 2015, 1:10 PM
Priyaranjan K SPosted Oct 13, 2015, 1:06 PM
abdelwaheb ammarPosted Oct 13, 2015, 1:01 PM
Priyaranjan K SPosted Oct 13, 2015, 12:57 PM