When i click on Form1 button, Form2 will appear on top of Form1...
My Code:
Expand|Select|Wrap|Line Numbers
- ' Form1 button
- Private Sub btnOne_Click(ByVal sender As System.Object, ByVal e As
- System.EventArgs) Handles btnOne.Click
- Dim form2 As New Form2
- form2.ShowDialog()
- End Sub
How to add the items from Form2 's comboBox to Form1 's comboBox...
My Code:
Expand|Select|Wrap|Line Numbers
- ' Form2 button
- Private Sub btnTwo_Click(ByVal sender As System.Object, ByVal e As
- System.EventArgs) Handles btnTwo.Click
- Dim form1 As New Form1
- form1.comboBox1.Items.Add(Me.comboBox2.Text)
- End Sub
These code will not have any effect on comboBox1 in Form1..
Thanks