Public Class Add_Material_Form
Public Sub ComboBoxMaterialClass()
Dim MatClassnum As Integer
Dim MaterialClass() As String = {"Book", "Dissertation", "Journal", "Theses"}
For MatClassnum = 0 To 3
MaterialClass(MatClassnum) = cmbMaterialClass.Items.Add(MaterialClass(MatClassnum))
Next
cmbMaterialClass.Text = "Select Material Class"
End Sub
Private Sub Add_Material_Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ComboBoxMaterialClass()
End Sub
End Class
Here's the code of my program.
I have 2 Forms when I go to the Form 1 the combo box bind information will be loaded, then if I go back to Form 2 then go back again to the Form 1 the combo box information will added up the same details above.
Any suggestion how to solve my problem?
Thanks in advance