Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago