Hello,
I'm new to this. I want to create a Windows form data source from an Entity Data Model. I already have the database from MySQL and ODBC 5 connector.Â
Can someone please teach me how to create Windows forms with MySQL?Â
Thanks in advance.
How do I create Windows form with mySQL?
Hello
1. Go to your visual studio and select ( File> New > Project ) , choose (a windows form application) and hit ( ok ).
2. Adding an Entity Data Model :
Right click in solution explore and select (Add > New item ) and do as follows :
3. You will see a window choose as shown :
4. Select (next) and you will see a window choose (next)
5. You see a window choose what you want in your model and then click (finish)Â
6. You will see the model as shown :
7. From main menu select (Build > Build Solution )Â
8. To add a new data source :
In main menu select (Data > Add New Data source )
9. Select Object and click nextÂ
10. Make as shown and click FinishÂ
11. You will see your object as shown :
12. Using the data source in windows form :
In the data source panel selects data source and drag and drop it to your formÂ
13. Save and rebuildÂ
14. Adding code to make changes to the data grid viewÂ
15. Save and rebuildÂ
16. Adding code to save changes to the database
In the Form designer click save iconÂ
I hope These steps will help you .