Hello i made a few text boxes and i want all the text of the text boxes to become combined into an array here is the code i used. (Some of it.)
I always get the exception error message. The actual error message the ex.message is:Code:Try My.Settings.CustomerNum = My.Settings.CustomerNum + 1 CustomerNum = My.Settings.CustomerNum My.Settings.CustomerID.Add(" Name: " & txtName.Text.Trim & " Phone#: " & txtPhone.Text.Trim & " Country: " & txtCountry.Text.Trim & " State/Province: " & txtProvince.Text.Trim & " City: " & txtCity.Text.Trim & " Address: " & txtAddress.Text.Trim & " C#: " & (CustomerNum)) My.Settings.CustomerNum = CustomerNum CustomerRecords.frmCustomerView.customerview.Items.Add(My.Settings.CustomerID(CustomerNum)) Catch ex As Exception MsgBox("Sorry, Customer Tracker 1.0 has encounted a problem. " & ex.Message, MsgBoxStyle.Critical, "Error") End Try
CustomerNum is an integer (constantly updates from my.settings etc...)Object referance not set to an instant of an object.
"CustomerView" is a list box.




Reply With Quote