VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Store TextBox, ListBox, and other controls values in a file then restore them from a file.

http://www.mp3trivia.com  (3 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code will save values for TextBox, CheckBox, ListBox, ComboBox, OptionButton, and MultiLine TextBoxes with no problem. It demonstrates using the controls collection to go through all controls contained on a form and save their values. It also has an error handler that gives abort, Retry and ignore options on errors. It uses conditional compilation to help with debugging by printing values to the debug window. This behavior can be changed by changing #const debugmode to 0. The file will automatically be saved in the same directory as your application and will contain the forms name with an extenstion of .set.

Inputs
a Form Object

Rate Store TextBox, ListBox, and other controls values in a file then restore them from a file. (6(6 Vote))

Download Store TextBox, ListBox, and other controls values in a file then restore them from a file.

Store TextBox, ListBox, and other controls values in a file then restore them from a file. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters