Thursday, July 9, 2009

DOCUMENT 1.

To publish the project, follow the Wizard under Build -> Publish.

From the UK

This example shows step by step how to connect a database to a VB.NET program.

In my opinion, this is the best tutorial I have found to connect a database and a VB.NET forms application without using the Wizard. Everything is step by step and done without much jargon or added complication. I think you will find it useful.

Remember: For the time of day=
Now.TimeOfDay.ToString

Excellent Links for DB Programming

This is a school database example that can be used as a template to create a working application. Click here.

Tuesday, July 7, 2009

Student...Graduate Student

Create a student class with two attributes and getters and setters.

Create a graduate student class with one other attribute.

Allow users to enter the info about one or the other...create the two objects depending on what the user chooses.

Here's the code from tonight's class (Baseball Players).

When creating classes....

MyBase.New() 'will access the parent classes constructor

Public Class BaseballPlayer
Inherits Player

'to create a BaseballPlayer from a Player class!

Here is the presentation...

Thursday, July 2, 2009

Code from today

LemoninfoTableAdapter.Insert(txtID.Text, txtLargeSold.Text, _
txtSmallSold.Text, txtName.Text)
Dim newRow As LemonadeStandDataSet.LemoninfoRow
newRow = LemonadeStandDataSet.Lemoninfo.NewLemoninfoRow
newRow.ID = txtID.Text
newRow.LargeSold = txtLargeSold.Text
newRow.SmallSold = txtSmallSold.Text
newRow.SalespersonName = txtName.Text
LemonadeStandDataSet.Lemoninfo.Rows.Add(newRow)

This above code is the most important from today!

Here are the two projects.