vincent15mark
Member
- Joined
- Sep 12, 2010
- Messages
- 5
- Programming Experience
- Beginner
Me.AddedNumbers.Text = Me.AddedNumbers.Text & ", " & Me.Input.Text
Dim GridRow As DataGridViewRow = grdAvailable.CurrentRow
lstVideos.Items.Add(CStr(GridRow.Cells.Item("Title").Value.ToString))
txtTotalVideos.Text = lstVideos.Items.Count
If CStr(GridRow.Cells.Item("RentAmount").Value.ToString) Then
txtTotalAmount.Text = Val(txtTotalAmount.Text) + CStr(GridRow.Cells.Item("RentAmount").Value.ToString)
End If
With lstVideos
If .SelectedIndices.Count > 0 Then
For i As Integer = .SelectedIndices.Count - 1 To 0 Step -1
.Items.RemoveAt(lstVideos.SelectedIndices(i))
Next
End If
End With
txtTotalVideos.Text = lstVideos.Items.Count
Dim GridRow As DataGridViewRow = grdAvailable.CurrentRow
If CStr(GridRow.Cells.Item("RentAmount").Value.ToString) Then
txtTotalAmount.Text = Val(txtTotalAmount.Text) - CStr(GridRow.Cells.Item("RentAmount").Value.ToString)
End If