All Topics of this Page
The code to delete a record is a little easier than last time. Double click your btnDelete and add the following:Dim cb As New...
Adding a new record is slightly more complex. First, you have to add a new Row to the DataSet, then commit the new Row to the Database. But the Add New Record button on our form is...
In this lesson, we'll see how to add new records, how to delete them and how to Update a records. Before we start the coding for these new buttons, it's important to ...
In this lesson, you'll add the code for the buttons. How to Move Forward One Record at a Time Double click your Next Record button to access the code. Add the following If...
In this section, we're going to see a more practical example of how to do that. To navigate through the dataset, let's change our form. By adding some navigation buttons, we...
What we want to do now is to display the records on a Form, so that people can see them. So so this: Add two textboxes to your form Change...
In the previous part, you learned how to set up a Connection Object. This was so that you could open a connection to the database itself. But that's not the end of it. The data...
In this next section, we'll take a look at the objects that you can use to open and read data from a Database. We'll stick with our Access database, the AddressBook.mdb one, and...
Let's make a start on our Database project. So, once you have your VB software open, do the following: Click File > New Project from the menu bar ...
From homeandlearnFor this tutorial, we're going to create a simple Address Book project. The names and addresses will come from a Microsoft Access database. Download the database...
You can add a new Report Designer to a project by selecting Add New item from the Project menu and choosing the Crystal Report icon. In the Add New item dialog box, give the report a name (View...
One of the powerful features of Visual Studio.Net is the report designer by Crystal Decisions called Crystal Reports. The Crystal Report Gallery contains “experts” to guide you in creating...
VariablesWhy are we discussing variables? And what is a variable? With Visual Basic, and most programming languages, what you are doing is storing things in the computer's...
Time to get our hands dirty with a bit of programming. There's no putting it off any longer, I'm afraid! We'll create a new project for the next section. So, if you...
Follow these easy steps:Step 1: Open your VB.Net Software Launch your Visual Basic .NET or Visual Studio software. When the software first loads, you'll see a screen something like this...
If you have a look in the top right of the Design Environment, you'll see the Solution Explorer. (If you can't see it, click View > Solution Explorer in version 2008 and View...
At the moment, our form looks a little bland. Time to liven it up with a splash of colour. Changing the colour of the Form means we have to change one of its properties - the...
- The Text Property
- Changing the values of some properties is fairly easy. We'll now change the Text properties of our labels, and the Text properties of our Textboxes.Click on Label1 so that it has the...
- An Introduction to VB .NET Properties
You've probably noticed the area to the right of the design environment, the area with all the textboxes in a grid, the one that has those daunting names like...
Things like buttons, textboxes, and labels are Tools that you can add to your Forms. They are keep in the Toolbox for ease of use.The Toolbox can be found on the left side of the screen as...
How to Add a Control to your VB.Net FormsLet's start with Adding a Textbox to a Form.Step 1 : Locate the Textbox Tool (View Image)Step 2 : Drag or Double click the icon The textbox gets added...