I am a student in school and I'm trying to figure out why my saleSummaryForm is not being popluated with the information needed. Could someone clue me into what I am missing or what I did wrong? I know that there may be more code in what I am posting below then needs to be there, but it is there so that you can see what I have already tried and am afraid to delete until I can figure out what I am doing right and wrong.
below is the summary code in the project.
Private Sub summaryButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles summaryButton.Click
Dim indexInteger As Integer
Dim totalTicketSalesDecimal As Decimal
Dim seatsSoldInteger As Integer
Dim costDecimal As Decimal
Dim returnDialogResult As System.Windows.Forms.DialogResult
seatsSoldInteger = ticketDetail(indexInteger).seatsSoldInteger
costDecimal = ticketDetail(indexInteger).costDecimal
For ticketDetail As Integer = 0 To 3
indexInteger = 0
totalTicketSalesDecimal = seatsSoldInteger * costDecimal
Next ticketDetail
SalesSummaryForm.balconyTotalSeatsTextBox.Text = ticketDetail(0).seatsSoldInteger
SalesSummaryForm.generaltotalSeatsTextBox.Text = ticketDetail(1).seatsSoldInteger
SalesSummaryForm.mezzanineTotalSeatsTextBox.Text = ticketDetail(2).seatsSoldInteger
SalesSummaryForm.orchestraTotalSeatsTextBox.Text = ticketDetail(3).seatsSoldInteger
SalesSummaryForm.balconyTotalSalesTextBox.Text = totalTicketSalesDecimal
SalesSummaryForm.generalTotalSalesTextBox.Text = totalTicketSalesDecimal
SalesSummaryForm.mezzanineTotalSalesTextBox.Text = totalTicketSalesDecimal
SalesSummaryForm.orchestraTotalSalesTextBox.Text = totalTicketSalesDecimal
returnDialogResult = SalesSummaryForm.ShowDialog()
If returnDialogResult = System.Windows.Forms.DialogResult.Yes Then
SalesSummaryForm.balconyTotalSeatsTextBox.Clear()
SalesSummaryForm.generaltotalSeatsTextBox.Clear()
SalesSummaryForm.mezzanineTotalSeatsTextBox.Clear()
SalesSummaryForm.orchestraTotalSeatsTextBox.Clear()
SalesSummaryForm.balconyTotalSalesTextBox.Clear()
SalesSummaryForm.generalTotalSalesTextBox.Clear()
SalesSummaryForm.mezzanineTotalSalesTextBox.Clear()
SalesSummaryForm.orchestraTotalSalesTextBox.Clear()
Me.summaryButton.Enabled = False
End If
End Sub