I am new to VB.NET. I am trying to create dynamically objects and giving them the event handles. Something like this
Code:
Dim NewTab As New TabPage Dim NewTextBox As New TextBox Dim NewTab2 As New TabPage Dim b As New Button AddHandler b.Click, AddressOf b1 Me.TabControl1.Controls.Add(NewTab) NewTab.Controls.Add(NewTextBox) NewTab.Controls.Add(b) Private
Leave a comment: