Thankyou, works well.
Any ideas how to get the times working? the code i have for that section is:
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
'adds ticked items to list boxes
Dim chkBakeItem As CheckBox
Dim dttKnot As Integer = 15
Dim intSupreme As Integer = 15
Dim intHawian As Integer = 15
Dim intTank As Integer = 15
Dim intAnzac As Integer = 15
Dim intRocky As Integer = 15
Dim intChocMac As Integer = 15
Dim intDoubleChoc As Integer = 15
Dim intDinner As Integer = 18
Dim intRound As Integer = 18
Dim intLong As Integer = 18
Dim intScotch As Integer = 20
Dim intCheese As Integer = 20
Dim intCheeseAndBacon As Integer = 20
Dim intHamburger As Integer = 20
Dim intFrench As Integer = 20
Dim intVienna As Integer = 22
Dim intSquareWhite As Integer = 25
Dim intSquareWhole As Integer = 28
Dim strInsert As String = gbxBakeryItems.Text
lbxOven1.SelectedIndex.Equals(-2)
If tbxStart.Text = "" Or tbxFinish.Text = "" Then
MessageBox.Show("Please enter Start and Finish times of shift before adding items")
Else : For Each chkBakeItem In gbxBakeryItems.Controls
If chkBakeItem.Checked = True And rdbOven1.Checked = True Then
lbxOven1.Items.Insert(1, (tbxStart.Text + (" ") & (chkBakeItem.Text)))
ElseIf chkBakeItem.Checked = True And rdbOven2.Checked = True Then
lbxOven2.Items.Insert(1, (tbxStart.Text + (" ") & (chkBakeItem.Text)))
ElseIf chkBakeItem.Checked = True And rdbOven3.Checked = True Then
lbxoven3.Items.Insert(1, (tbxStart.Text + (" ") & (chkBakeItem.Text)))
End If
Next
End If
End Sub
End Class