这是我的代码: -
If FirstNameText.Text = "" Then
MessageBox.Show("Please enter your first name please")
End If
If SurnameText.Text = "" Then
MessageBox.Show("Please enter your surname please")
End If
If (Not RB_Male.Checked) AndAlso (Not RB_Female.Checked) Then
MessageBox.Show("Please select your gender")
End If
If ComboBox1.SelectedValue = False Then
MessageBox.Show("Please select your year group")
End If
If TextStudentID.Text = "" Then
MessageBox.Show("Please select the generate button to give you a unique student ID")
End If
"in this section I want to add all the submitted items to an arraylist so a user's name pops up in the list box"
Try
Catch ex As Exception
End Try
这是我编写的唯一一段代码,并且已经到处寻找将项目提交给arraylist的答案。 “”区域是我计划将项目提交给arraylist的地方。任何帮助或链接到我们做的好指南。
答案 0 :(得分:-1)
也许我编辑的代码对你有所帮助:)而且我添加的//<Text>
可能对你以及如何编辑ArrayList有所帮助。