A Basic Example of CRUD with DataGridView in VB.Net

Intended for new developers, or at least new to ADO.Net, this post will demonstrate how to Create, Read, Update and Insert data into a MS SQL Server database. We will use a VB.Net winforms project, DataGridView and SqlDataAdapters. You can pull down the complete project from GitHub here.

UPDATE: I have also published a similar example application done with Code First EntityFramework 6.

The finished Form looks like this:
Continue reading

Forms are just Classes

Over and over and over again forums like Stackoverflow see questions about how to access something on a Form, from another Form. These questions have been answered hundreds or thousands of times, but with this post I hope to finally put the question to rest by explaining it so that it “clicks”. Continue reading