Post by gabriel2564 on Sept 12, 2014 7:30:09 GMT 10
Hello guys, I use this code to create a new tab in my browser, but I realize that this code limits the amount of Tabs, how can display unlimited tabs? Code:
Dim MyUserControlCoolName The New myUserControl
Form1.SuperTabControl1.CreateTab ("name")
MyUserControlCoolName.Browser.Name = "Browser"
MyUserControlCoolName.Dock = DockStyle.Fill
MyUserControlCoolName.Browser.Source = New Uri (My.Settings.inicial)
Do Until Form1.SuperTabControl1.SelectedTab.Text = "name"
Form1.SuperTabControl1.SelectNextTab ()
loop
Form1.SuperTabControl1.SelectedTab.AttachedControl.Controls.Add (MyUserControlCoolName)
|
|
Post by Imformas on Sept 12, 2014 18:47:59 GMT 10
i don't get by when you say unlimited by try this Dim MyUserControlCoolName As New myUserControl Form1.SuperTabControl1.CreateTab ("name") MyUserControlCoolName.Browser.Name = "Browser" MyUserControlCoolName.Dock = DockStyle.Fill MyUserControlCoolName.Browser.Source = New Uri (My.Settings.inicial) Do Until Form1.SuperTabControl1.SelectedTab.Text = "name" Form1.SuperTabControl1.SelectNextTab () loop Form1.SuperTabControl1.SelectedTab.AttachedControl.Controls.Add (MyUserControlCoolName)
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by Nathan Lecompte on Sept 12, 2014 18:53:57 GMT 10
Hey gabriel2564, The code you're using should support "unlimited" tabs. There's no limit! Hope this helps!
|
|
Post by gabriel2564 on Sept 13, 2014 1:38:40 GMT 10
Yes guyds, but do not know what the problem is: I can create two regular tabs, but if I create another tab it is blank!
|
|
Post by Imformas on Sept 13, 2014 1:41:07 GMT 10
|
|
Post by Nathan Lecompte on Oct 6, 2014 12:28:54 GMT 10
If your question has been answered please press the "Accept" button next to the post which answered your question.
|
|