Post by Makan on May 22, 2014 10:57:44 GMT 10
Well before I asked if we can make a browser with SupertabControl and so that the browser would fill with the awesomium browser! Now my question is that I made a form and I want to make a SuperTabControl with the form named tab. Currently I am using the Normal Tab Control with this code:
Dim tab As New TabPage Dim newtab As New tab newtab.Show() newtab.Dock = DockStyle.Fill newtab.TopLevel = False tab.Controls.Add(newtab) Form1.TabControl1.TabPages.Add(tab) Form1.TabControl1.SelectedTab = tab
Now I want to make it fill the Tab in a supertabcontrol, how do I do that?
Last Edit: May 30, 2014 11:32:15 GMT 10 by Makan
|
|
Post by Nathan Lecompte on May 22, 2014 16:57:29 GMT 10
Do you mean: Set selected tab text to website title. It's quite simple really: SuperTabControl1.SelectedTab.Text = CType(SuperTabControl1.SelectedTab.AttachedControl.Controls.Item(0), TabPage).WebControl.Title.ToString Hope this helps!
|
|
Post by Makan on May 27, 2014 9:29:48 GMT 10
Yah, now I tried that but I get an error saying : "'webcontrol' is not a member of 'System.Windows.Forms.TabPages'... What do I do?
|
|
Post by Nathan Lecompte on May 27, 2014 15:52:41 GMT 10
Try this instead:
SuperTabControl1.SelectedTab.Text = CType(SuperTabControl1.SelectedTab.AttachedControl.Controls.Item(0), Tab).WebControl.Title.ToString
|
|
Post by Nathan Lecompte on May 29, 2014 16:08:43 GMT 10
If this solved your question please add "[SOLVED]" to your subject/title.
|
|