How to make a database in Visual Basic

Creating "Add" Form


Create "Add Record" form:

Step One: Add new windows form
Step Two: Add the following to the form
Your form should look like this..

Add code to "Save" button:

This button will save your input to a text file
Step Three: Use a StreamWriter to determine where to save your input

Step Four: Link your variables to the corresponding text box
Step Five: Add StrLine
The following lines of code tells the program the order to save the data within the text file

Add code to "Browse" button:

This button will allow you to browse for images
Step Six: Add OpenDialog to the button
Step Seven: Insert the following line of code


This allows you to open an image

Add code to "Close" button:

This button will close the form
Step Eight: Add the line "Me.Close()" to the button code