Ethan Noble
Ethan Noble

Reputation: 49

Visual Studio 2019 Data Source Window Doesn't Allow Me To Add A Database File

I am trying to connect a database to my C# Windows Form Application, but the data sources window says that

This window is not supported for the selected project.

How can I fix this? I have the data connection set in the server explorer.

Upvotes: 4

Views: 9078

Answers (2)

Aleksandr Yakubenko
Aleksandr Yakubenko

Reputation: 1

Toolbox window allows to place your Tables/Views to form. Ensure that in Options/Windows Forms Designer/Automatically Populate Toolbox is true

Upvotes: 0

bibars
bibars

Reputation: 86

In the ( Create a new project ) window select Windows Form App(.NET Framework) NOT Windows Form App (.NET)

Upvotes: 7

Related Questions