如何在列表框中显示2D多维数组

问题描述

我想将所有内容显示在列表框上的多维数组中,但我尝试过的所有方法均无效。请帮我解决这个问题。

这是我的代码

     'Declare the variables needed
    Dim arrCon(12,2) As String
    Dim conInd As Integer = 0

    Private Sub btnAdd_Click(sender As Object,e As EventArgs) Handles btnAdd.Click

        If arrIndex <= 12 Then
            arrCon(conInd,0) = txtFname.Text
            arrCon(conInd,1) = txtLname.Text
            arrCon(conInd,2) = txtSubject.Text

            arrIndex += 1

            If 13 <= arrIndex Then
                MessageBox.Show("The array is filled")
            End If
        End If

        txtFname.Text = String.Empty
        txtLname.Text = String.Empty
        txtSubject.Text = String.Empty
    End Sub

如何在列表框的行和列中显示此内容。我使用的所有方法均无效。

请帮助

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...