How to Create Setup.exe in Visual Studio 2019 with SQL Database | FoxLearn

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Welcome to FoxLearn In this tutorial, I'll show you how to create a setup file with SQL Database in Visual Studio 2019 using Microsoft Visual Studio Installer Projects Extension To play the demo, you should create a new windows forms application, then add the service based database to your project Next, You need to connect to the local database from the visual studio, then add a simple customer table to the local database You need to add new data sources to your project, then enter the connection string name and select the table you want to add to your DataSet After you have defined a data type as a data source in a project you can create forms that display model data by dragging items from the Data Sources window into your winform These items become controls on the form that are bound to the data source As you can see, the Binding Source component will automatically add to your form when dragging items from the data source window into your form The BindingSource component serves two purposes First, it provides a layer of indirection when binding the controls on a form to data This is accomplished by binding the BindingSource component to your data source, and then binding the controls on your form to the BindingSource component All further interaction with the data, including navigating, sorting, filtering, and updating, is accomplished with calls to the BindingSource component Second, the BindingSource component can act as a strongly typed data source You can easily modify your layout after dragging items from the data source window into your winform You can add CheckedChanged event handlers to the GenderCheckBox control allows you to change text to male or female based on gender value To fix the error, you need to open the DataSet. Next, set the automatic increase value for the ID field You can find your local database in the debug folder, remember that each time you rebuild your project, all data in the debug folder will be deleted To create the setup file, you need to create a setup project Select Application Folder Next, select the files you want to create setup or choose to add project output If you want to create a shortcut to your desktop screen You need to select the executable file you want to create, then right-click and choose to create shortcut from the drop-down menu Next, drag the shortcut that you created to the User's Desktop or User's Programs Menu You can also add an icon to your application or application shortcut Click on your setup project Next, select the properties tab, then you can enter the author, product name, description...etc for your setup file Right click on your setup project, then select properties Next, click the prerequisites button You can add requirements to install some other components before installing your application Such as, .NET Framework, SQL Server Express...etc If you get an error when rebuilding your setup project, you should run the command as I did in this tutorial to solve the problem Right click on the setup project, then select open folder in file explorer from the menu You can find your setup file in the debug folder Thank you for watching this video and don't forget to subscribe to my channel
Info
Channel: Fox Learn
Views: 77,350
Rating: undefined out of 5
Keywords: .net, c# winforms, c#, visual studio 2019, create setup file in visual studio 2019, create setup file with local database, create setup file with sql database, how to create setup file in visual studio, create setup in visual 2019, how to create setup.exe in visual studio 2019, how to create setup exe file in visual studio 2019, how to create setup file in visual studio 2019, create setup project in visual studio 2019, foxlearn, create setup with database in c#, create setup exe file
Id: 1PWnehfCh2U
Channel Id: undefined
Length: 13min 1sec (781 seconds)
Published: Sat Aug 24 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.