A
Aziz
Here's the problem.
On my OrderForm the user can click a link to open up the AddCustomer
form to add a new customer, when AddCustomer form closes, it saves the
customer to the DataBase. The AddCustomer form is currently opened as a
Modal form using ShowDialog.
At the moment to see the newly added customer (in a ComboBox)I have to
click a button to close, then re-open the OLEDbConnection, re-fill the
DataSet then call the ComboBox fill method again. How do I enable it so
these commands are done automaticaly when the AddCustomer form closes?
Bear in mind that the AddCustomer form can itself be also loaded from
the MainMenu.
I tried the OrderForm's Got_Focus event but that doesn't work.
Any ideas?
On my OrderForm the user can click a link to open up the AddCustomer
form to add a new customer, when AddCustomer form closes, it saves the
customer to the DataBase. The AddCustomer form is currently opened as a
Modal form using ShowDialog.
At the moment to see the newly added customer (in a ComboBox)I have to
click a button to close, then re-open the OLEDbConnection, re-fill the
DataSet then call the ComboBox fill method again. How do I enable it so
these commands are done automaticaly when the AddCustomer form closes?
Bear in mind that the AddCustomer form can itself be also loaded from
the MainMenu.
I tried the OrderForm's Got_Focus event but that doesn't work.
Any ideas?