I'm working on a project that will create new windows components. (If this is possible).
I have made a button that creates new forms when clicked in the MDI container.
Now I'm just wondering if someone can figure out a code to make it so when I click a button it creates a new button on the new created form.
Please help me, much appreciated.
If your wondering about my code here it is:
Code:Dim count1 As Integer = 0 Private Sub NewButtonToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewButtonToolStripMenuItem.Click Dim NewButton As New Button NewButton.Text = ("Button ") & count1 NewButton.Show() count += Val(1)




Reply With Quote