Hello,
I've been searching high and low for this answer, but not having any luck. Can someone provide a simple example (VB .net) of saving a value to a text file, populating the dropdown menu with that value, and then reloading that value from the text file when the application is closed and restarted? This code can be executed by clicking a button on a blank form with a splitbutton. Separately, I know how to add items to the splitbutton control, and how to write text to a text file. However, I do not know how to write data in the necessary format to a text file for a dropdown control or how to call/retrieve that information in the form load event. Please help. A simple example will work. As always, thanks in advance.
-gk
I've been searching high and low for this answer, but not having any luck. Can someone provide a simple example (VB .net) of saving a value to a text file, populating the dropdown menu with that value, and then reloading that value from the text file when the application is closed and restarted? This code can be executed by clicking a button on a blank form with a splitbutton. Separately, I know how to add items to the splitbutton control, and how to write text to a text file. However, I do not know how to write data in the necessary format to a text file for a dropdown control or how to call/retrieve that information in the form load event. Please help. A simple example will work. As always, thanks in advance.
-gk