
Build a minimal, multi-database CRUD application in C#, with Windows Forms, using MySQL and SQL Server, via Visual Studio 2019, featuring search, insert, update, and images.
download and install Visual Studio 2019 Community Edition and MySQL server in the correct order to enable C# Windows Forms development.
Install Visual Studio first, then install MySQL server with the installer; configure root and a user, set strong passwords, and use MySQL Workbench to create databases and manage the server.
Create the database in MySQL Workbench for the crud app, building a schema with an auto-increment id and fields like company, name, and address; implement stored procedures for server access.
Import data into the new database using the table data import wizard with a CSV export file, mapping columns, and importing seven records for development.
learn to create the first stored procedure bc_get_all, return all records with select star from the table, and understand how stored procedures decouple code and enhance security.
Lock down the database by restricting the front end to execute only stored procedures with a dedicated local account. Store credentials outside code and grant minimal privileges to prevent access.
Explore the advantages of stored procedures in a CRUD app using C#, MySQL Server, and Windows Forms, including performance, maintainability, reuse, security against SQL injection, and productivity.
Use the provided MySQL UI documentation to build a Windows Forms interface, following consistent naming conventions for text boxes (first name, last name) and perform essential Visual Studio setup.
Create the user interface for a CRUD application using C#, MySQL Server, and Windows Forms, focusing on intuitive layout, controls, and navigation.
Configure Visual Studio 2019 by adding MySQL and system.config references, set using statements, and prepare for connection string configuration in the next video.
Learn how to configure a MySQL database connection in a C# Windows Forms app using app.config, define a connection string, fetch it with ConfigurationManager, and open and close the connection.
Read database data into the data grid view on startup. Bind a data table to the grid using a configured connection and data adapter.
Learn to prevent crashes in a C# Windows Forms CRUD app by using try-catch for database calls and stored procedures, and show user-friendly errors when connections fail.
Master try and catch blocks in a C# Windows Forms CRUD app to handle database errors, show a warning message box, and keep the data grid view stable.
double-click a row to populate text boxes from the data grid view, then use a single stored procedure for save and update guided by the record id.
Learn to add new records and update or delete existing data in a database using stored procedures, with parameter handling and conditional insert or update logic.
Implement update functionality in a C# Windows Forms CRUD app by wiring save and update to a stored procedure, transfer data to the database, and refresh the UI.
Demonstrate creating and updating records in a Windows Forms CRUD app using C# and MySQL, including save, update, new record handling, and refreshing the data grid view.
Demonstrate deleting a record via a stored procedure in a crud app built with C#, MySQL Server, and Windows Forms, including user confirmation and data grid refresh.
Explore helper methods to tidy a crud app in C#, MySQL server, and Windows Forms, including update, delete, and clearing textboxes with user messages, planning a stored procedure for search.
Demonstrates clearing and resetting text boxes in a Windows Forms app, including instantiation, setting text to empty, enabling and disabling controls, and handling updates and double-click events.
Learn to implement save and new button workflows in a windows forms CRUD app by enabling text boxes, clearing fields, and updating the data grid view.
Implement a graceful quit with a quit button and a yes/no message box in Windows Forms. Initialize button states and handle the dialog result to exit on yes.
learn to implement save, update, delete flows, enable/disable buttons, show message boxes, initialize buttons, clear text boxes in a C# Windows Forms CRUD app with new records.
Learn to implement a search stored procedure that takes a search value and uses like with wildcards to filter company, first name, or last name in the database.
Implement a live search in a Windows Forms CRUD app by wiring a text box to a stored procedure, updating the data grid with results as you type.
This course (part 1) will have in total 11 sections.
The course will give you the knowledge of how to use C# to build a full CRUD application using Windows Forms. We will be using Visual Studio 2019 Community edition and create this CRUD application with MySQL Server as the database. We will also be using Stored Procedures that will be executed by a specially defined user.
The course will expand to three parts where we will add another database in part 2. In part 3 we will add capability to use images/photos/logos that we will stored in the database itself. When all parts are complete it’ll extend to another approx. 10-12 sections.
You will find a number of downloads in some of the section /lectures that will help you with some details and definitions. At the end of the course you will also find the source code itself for download.
Tools and development environment can be downloaded for free – full instructions inside this course regards to installation and configuration. You can find more detailed information on my BLOG. See my instructor page for the link.
At the end of this course, you will be confident of writing your own CRUD applications using C# and MySQL Server.
You can also contact me in different ways to have some support, if needed.