.Net problem/Question

Randall Donaldson 21 Reputation points
2021-03-29T20:12:43.77+00:00

I haven't programmed in .Net, last used VB 6 several years ago. I'm trying to make a Windows Form application in VB.Net, and it won't let me use the "Add New Data Source" option to connect my database to the project. When I click "Add New Data Source" nothing at all is happening, that I can see. It's not launching a wizard. Data Sources tab still says "There are no data sources to show for the selected project." I've tried several tutorials online and none of them seem to be having this issue.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,735 questions
{count} votes

Accepted answer
  1. Karen Payne MVP 35,436 Reputation points
    2021-03-30T01:40:37.5+00:00

    Have not seen what you have shown. If by chance this is a .NET Core VB.NET project this functionality is not supported while using conventional .NET Framework this is supported.

    Try the following if not using VB.NET with .NET Core

    • Opening the server explorer tab
    • Create a connection to a database
    • Now try adding a data source to your project

    If that does not work, click on the feedback button in Visual Studio then click "Report a problem" (you need to be sign in to Visual Studio to do this)


3 additional answers

Sort by: Most helpful
  1. Viorel 118K Reputation points
    2021-03-29T20:20:00.603+00:00

    Try selecting the project in Solution Explorer before executing “Add New Data Source…”.

    0 comments No comments

  2. Randall Donaldson 21 Reputation points
    2021-03-29T23:59:56.867+00:00

    Yeah, I tried that. That changed it from telling me "This window is not supported for the selected project" to saying "there are no data sources to show for the selected project." So now, there are no data sources (as expected), and I go to "Project>Add New Data Source" and all it does is change my focus back to the Data Sources tab. But all of the buttons at the top of the Data Sources tab are disabled.

    82419-untitled1.png


  3. Xingyu Zhao-MSFT 5,366 Reputation points
    2021-03-30T02:28:09.883+00:00

    Hi @Randall Donaldson ,
    It seems that you didn't select any project.
    82577-1.png
    After creating a windows form project, you need to select it.
    82528-2.png
    Hope it could be helpful.
    Besides, if I have any misunderstanding, please provide more details here.

    Best Regards,
    Xingyu Zhao
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.