Content: small software for. net and xml (about 100 lines)
Note: If you post a post, you must specify the source and author.
// ======================================================== Start ====== ==============
// =================================================== ==================
'Re-create the bin folder of the project destination folder
'Create two files
'One is "myxml. xml"
'One is "myxml. mdb"
'Here is a table named "users" with three field names "nameid", "age", "faverity"
'Then go to the graphic interface
Click "data" in the "toolbox" to set "OleDbConnection", "OleDbComman", "DataSet", "OleDbDataAdapter"
'Pull the form interface
'Perform operations on these controls in sequence
'My folder is D: vbprojectWindowsApplication1
'D: vbprojectWindowsApplication1/bin/myxml. xml
'D: vbprojectWindowsApplication1/bin/myxml. mdb
// =======================================================
(1) first, the. Net FrameWork must be available on the machine.
Open VS. NET and expand in sequence: File-new-project;
Select VISUAL-BASIC-project-Windows application
This is a small interface.
Now we can write code step by step to complete its functions.
First, complete the adding function:
Our goal is to add these three text boxes (names, ages, hobbies) to the database. Then, save the table of the database in XML format.
Double-click "add".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.