Create Windows Form in Visual Studio
使用 C# 创建 Windows 窗体应用 - Visual Studio (Windows) | Microsoft Learn
Create new Form and connect them
c#的winform实现两个界面的跳转_winform跳转到另一个页面-优快云博客
Add New Form Ctrl + Shift + a
Achieve connect
Form2 form2 = new Form2();
this.Hide();
form2.ShowDialog();
this.Dispose();
Database
SQL server
下载 SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Learn
【精选】WindowsForm窗体连接数据库_windows窗体连接数据库-优快云博客
To connect the database
run 'sqlcmd -s yourservername -e '
it need to open sql server at same time
run 'sqlcmd -l' to check server name
SSMS connect VS