Question
This is vb.net This code is not working I get this error message >System.ArgumentNullException: 'Value cannot be null. Parameter name: item' I just want to
This is vb.net
This code is not working I get this error message >System.ArgumentNullException: 'Value cannot be null. Parameter name: item'
I just want to display in the list box the information that i receive in the textbox
Public Class Form1 Dim i As Integer Dim userInfo(4) As String Private Sub btnSaveUser_Click(sender As Object, e As EventArgs) Handles btnSaveUser.Click 'Dim userInfo(4) As String 'txtUserNamePhone.Text = userInfo(4) 'Dim nombre As String = txtUserNamePhone.Text 'MessageBox.Show(nombre) userInfo(0) = txtUserNamePhone.Text userInfo(1) = txtUserNamePhone.Text userInfo(2) = txtUserNamePhone.Text userInfo(3) = txtUserNamePhone.Text For i = 0 To 4 'osea 0,1,2,3,4 lstDisplay.Items.Add(userInfo(i)) Next End Sub End Class
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started