The program is simple, it asks for the first and last name of the user along with three other interactive user input elements. When the user types in the first and last name it should use an array and send the name to a ComboBox via a click of a button. At the moment I don't know how to send the user typed values to the Combox using an array.
Below is the code I have right now:
Public Class Form1
Dim people(20) As String
Dim peopleIndex As Integer
Dim firstName As String
Dim lastName As String
Dim blnGroup As Boolean
Dim numberOfAdult As Integer
Dim numberOfChild As Integer
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
peopleIndex = -1
End Sub
Private Sub btnAddCustomer_Click(sender As System.Object, e As System.EventArgs) Handles btnAddCustomer.Click
peopleIndex += 1
If peopleIndex > UBound(people) Then
ReDim Preserve people(peopleIndex + 10)
End If
End Sub
End Class