I would like to update a panel in a windows form C# after adding an entity from another form and without having to use Application.Restart();
Form 1 :
private void kopf1_Load(object sender, EventArgs e)
{
kopf1.PopulateEntladeNr();
}
Form 2:
private void button1_Click(object sender, EventArgs e)
{
// command object identifying the stored procedure
switch (MessageBox.Show("Are you sure you want to save this?",
"Verify",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question))
{
case DialogResult.Yes:
// "Yes" processing
{
Insert_WE();
Application.Restart();
}
break;
So basically after clicking on a button I will find the information added in the combobox of the main form as if I did restart the app. Bare in mind that f1.update() didn't work. So could someone help please?