Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. 'industry is the user inputted string
  2. TabControl1.TabPages.Add(industry)
  3. TabControl1.Refresh()
  4. TabControl1.SelectedTab = TabControl1.TabPages.Item(industry)
  5. TabControl1.Parent = Me.ActiveControl.Parent
  6. Dim newListbox As New System.Windows.Forms.ListBox
  7. Dim locationpoint As Point
  8. newListbox.Parent = TabControl1.SelectedTab
  9. newListbox.Width = 1154
  10. newListbox.Height = 498
  11. locationpoint.X = 0
  12. locationpoint.Y = 0
  13. newListbox.Location = locationpoint
  14. newListbox.Name = industry
  15. newListbox.BorderStyle = BorderStyle.Fixed3D
  16. newListbox.CreateControl()
  17. Dim counttabs = TabControl1.TabCount
  18. TabControl1.SelectedIndex = counttabs
  19. Me.TabControl1.SelectTab(counttabs - 1)
  20. TabControl1.SelectedTab.Controls.Add(newListbox)
  21. newListbox.Dock = DockStyle.Top
  22. TabControl1.SelectTab(industry)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement