Académique Documents
Professionnel Documents
Culture Documents
NET
Creating ADO.NET code and bound forms in Data Form Wizard Visual Basic.NET
The following steps give you how to create ADO.NET Code in Data Form Wizard
Visual Basic.NET (In this case, I use Northwind Orders and Order Details tables) :
1. Open Microsoft Visual Studio.NET, then create New Project and name it Data
Wizard.
2. Right Click on the project in Solution Explorer window and choose Add | Add
New Item.
4. After you click Open button, then will be look like this. Then click Next button.
5. Name it dsSample in “Create a new dataset named”, then click Next button.
6. Choose a data connection if you already have a data connection. If you don’t
have a data connection before, you must create it (After this, I will explain how to
creating a data connection).
Enter your Server Name, then choose Use Windows NT Integrated security
and Select the database (Northwind).
After it, click Test Connection button to show that connection is right. Then
click OK button.
8. Select Order Details and Orders tables by moving them to the right-arrow
button. Then click Next button.
9. Fill the Name, Parent table, Child table and Keys like steps 10.
10. Then click right-arrow button to add the relation to the Relations box on the
right side of the dialog box.
12. Select Orders in Master or single table then click Next button.
14. Select Single record in individual controls option, then click Finish button.
15. Now, the form designer and code has been created.
16. To test the form, set is as the startup form for the project.
Result :
Contact :
Hendra Gunawan Djaja
Email : hendragd@yahoo.com