Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6337763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:18:43+00:00 2026-05-24T19:18:43+00:00

I want to automatically generate VB.NET forms using tables from a SQL Server database

  • 0

I want to automatically generate VB.NET forms using tables from a SQL Server database (one form / database table). It is perhaps possible with writing custom custom code for it, but if there is already some feature that does the job that would be great (database has 40+ tables, manually doing this is a tedious task).

Any answers, help, links, tips is greatly appreciated.

Regards,
Ayub

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:18:44+00:00Added an answer on May 24, 2026 at 7:18 pm

    It takes just a minute to fix, all functionality allready exists in Visual Studio.

    Fire up Visual Studio, click on Add new datasource… to start the Data Source Configuration Wizard:

    enter image description here

    Select Database and follow the wizard:
    enter image description here

    When connected to the database, select the tables you are interrested in and press the Finnish button:
    enter image description here

    Now, this will create a strongly named dataset in your solution, if you double click the xsd file you’ll see the tables you selected in the schema editor, but leave that for now:
    enter image description here

    Now, select “Show Data Sources” from the data-menu and you will see all tables you selected in the wizard. To the left of each field its an icon that tells what type of control that field will be represented by on the resulting form:

    enter image description here

    Now you can deside how the data will be presented on the form, as a datagridview or in detail mode, just use the dropdown on the table name (only when in form-design-mode).

    enter image description here

    If you have selected details-mode on the table, then you can change what control the field will be represented by (must be in form-design-mode, not code-mode):

    enter image description here

    Then just drag the table from the data source view to an empty form and it will magically create controls to edit/add/delete and move around the data.

    This is the result if DataGridView-mode was selected:

    enter image description here

    And if Details was selected on the table:

    enter image description here

    In code behind it also magically add some code to load the data to the adapter when the form loads and some save/validating code:

    Private Sub AccountBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AccountBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.AccountBindingSource.EndEdit()
        Me.AccountTableAdapter.Update(Me.MyDBDataSet.Account)
    
    End Sub
    
    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'MyDBDataSet.Account' table. You can move, or remove it, as needed.
        Me.AccountTableAdapter.Fill(Me.MyDBDataSet.Account)
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to automatically commit the database when we copy files from one branch
I want to analyze an SQL Server stored procedure from .NET code to retrieve
Hibernate: I want to have hibernate automatically generate my tables with names in lowercase.
I want Eclipse to automatically generate Javadoc comments for my getter and setter methods
I want to generate a classpath automatically with all the *.jar files contained under
I have a CheckedListBox, and I want to automatically tick one of the items
I get poorly formatted invoice-related email from my payment gateway. I want to automatically
I have an access macro, that I want to run automatically from a batch
I want my code to automatically try multiple ways to create a database connection.
I want to set my server to automatically build my application upon commit on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.