Help with VB 2019 and Win Forms App .Net Framework

Mohsin Jessa 1 Reputation point
2020-11-26T22:24:15.27+00:00

open-database-by-sql-server-dotnet-data-provider

At the above link is what I'm following to learn how to connect a SQL server table to a VB 2019 form - creating a .Net Framework app.

I'm stuck at Steps 2 under the section "Use Server Explorer to open SQL Server connection"

Step2 - I can't drag and drop the 2 fields (LastName and FirstName) on to the Form1 design.

I'd appreciate if someone can help me with these steps - just getting into .NET and Visual Studio environment.

Thanks

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,644 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
336 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Peter Fleischer (former MVP) 19,311 Reputation points
    2020-11-27T08:55:01.667+00:00

    Hi,
    in linked article "Use Server Explorer to open SQL Server connection" don't work in plain Visual Studio 2019. You can use another approach:

    1. Drop DataGridView on Form
    2. Crate DataSource (via contect menu)
    3. Select Table and fields

    43156-x.gif

    0 comments No comments