Hello:
I'm new here and I know there are various flavors of this, but what I am looking for is the simplest way of doing this...I'll describe...I have 2 forms...on the main form, I have a list box that displays info from a text file. The second form is where the records get added to the text file. When I click the save button on the second form, I need it to refresh the list box on the first form. All the code to display the info in the list box is there and working great...I just need a refresh.....can I do a mainform.lstbox.refresh() in the click event of the second form??? Or...do I have to pass a value from the second form to the main form...and if so...what's the best way to do this.
Thanks for any help you can offer,
Regards,
Alex
I'm new here and I know there are various flavors of this, but what I am looking for is the simplest way of doing this...I'll describe...I have 2 forms...on the main form, I have a list box that displays info from a text file. The second form is where the records get added to the text file. When I click the save button on the second form, I need it to refresh the list box on the first form. All the code to display the info in the list box is there and working great...I just need a refresh.....can I do a mainform.lstbox.refresh() in the click event of the second form??? Or...do I have to pass a value from the second form to the main form...and if so...what's the best way to do this.
Thanks for any help you can offer,
Regards,
Alex