Post by gabriel2564 on Sept 10, 2014 9:10:47 GMT 10
Hello Friends! You can adptar this code the "WebControl" for Usercontrol1? (No need to adapt the name "name") Thanks!
Dim Browser As New WebControl
Form1.SuperTabControl1.CreateTab ("name")
Browser.Name = "Browser"
Browser.Dock = DockStyle.Fill
Browser.Source = New Uri (My.Settings.inicial)
Do Until Form1.SuperTabControl1.SelectedTab.Text = "name"
Form1.SuperTabControl1.SelectNextTab ()
loop
Form1.SuperTabControl1.SelectedTab.AttachedControl.Controls.Add (Browser)
|
|
Post by Nathan Lecompte on Sept 10, 2014 16:03:59 GMT 10
Hey Gabriel2564, Just replace "browser" with the name of the user control: 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)
Hope this helps! PS: Add "[SOLVED]" <<exact to your subject/title when solved. Cheers!
|
|
Post by gabriel2564 on Sept 11, 2014 3:02:40 GMT 10
thank you very much, it worked!
|
|