Advertisement
Cryomods

Adding New Tabs

Nov 24th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.  
  3.     Dim tabpage As New TabPage
  4.     tabpage.Text = "(empty)"
  5.  
  6.     Dim textbox1 As New TextBox
  7.     Dim textbox2 As New TextBox
  8.  
  9.     textbox1.Parent = tabpage
  10.     textbox2.Parent = tabpage
  11.  
  12.     textbox1.Location = New Point(10, 10)
  13.     textbox2.Location = New Point(10, 30)
  14.  
  15.     textbox1.Name = "textbox1"
  16.     textbox2.Name = "textbox2"
  17.  
  18.     TabControl1.TabPages.Add(tabpage)
  19.  
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement