Hi - Me and my project partners are coding a program for this project...
To put this simply:
We have a windows form with a listbox that populates from a column in a data table...
We have a second form to add items to that data table column (that's a gross simplification but has the same end result)
When this 2nd form closes, we would like to first form's listbox to update (to call the tableadapter.fill or likewise method)
I made a button on the 2nd form telling the first form to to do the fill method (my.forms.form1.___tableadapter.fill(etcetc.etcetc)
However, this button does not work. Also, the FormClosing method with the same code does not work.
Can anyone point me to some ideas on how to update a form in this manner using buttons or actions from another form? The obvious ways don't seem to be working for me
To put this simply:
We have a windows form with a listbox that populates from a column in a data table...
We have a second form to add items to that data table column (that's a gross simplification but has the same end result)
When this 2nd form closes, we would like to first form's listbox to update (to call the tableadapter.fill or likewise method)
I made a button on the 2nd form telling the first form to to do the fill method (my.forms.form1.___tableadapter.fill(etcetc.etcetc)
However, this button does not work. Also, the FormClosing method with the same code does not work.
Can anyone point me to some ideas on how to update a form in this manner using buttons or actions from another form? The obvious ways don't seem to be working for me