New Tab generieren für Browser!
-
Kleiner Tip. Du machst es genauso wie bei dir oben, nur das du den eben erzeugten Tab verwendest
-
Aber
tabControl1.SelectedTab = tabControl1.TabPages[TabPage];
funktioniert nicht
-
Ich bitte dich!
Das hatte ich nicht gesagt.namespace Browser { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { TabPage tabPage = new TabPage(); // Gets the controls collection for tabControl1. // Adds the tabPage1 to this collection. this.tabControl1.TabPages.Add(tabPage); this.tabControl1.SelectedTab = tabPage;//!!!!!!!!! } } }
-
Geht noch immer nicht...
Woran liegt das?
Hilfe büdde
-
---c# schrieb:
Geht noch immer nicht...
Und was geht nicht?
-
Doch muss gehen, oder du machst woanders etwas falsch.
http://msdn.microsoft.com/de-de/library/system.windows.forms.tabcontrol.selectedtab.aspx
-
Solange nicht gezeigt wird wie es probiert wurde, oder zumindest etwas Eigeninitiative zu erkennen ist würde ich hier nicht helfen.
-
Sry das war ich nicht es geht!
Danke
mfg
---C#
-
Sorry wegen doppelpost aber ich will mich nochmal bedanken und ich habe gelernt
namespace WindowsFormsApplication3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { WebBrowser webBrowser = new WebBrowser(); TabPage tabPage = new TabPage(); // Gets the controls collection for tabControl1. // Adds the tabPage1 to this collection. this.tabControl1.TabPages.Add(tabPage); this.tabControl1.SelectedTab = tabPage; tabPage.Controls.Add(webBrowser); webBrowser.Dock = DockStyle.Fill; webBrowser.Navigate(new Uri("http:\\\\google.de")); } } }
Ich habe einfach probiert das ganze nochmal umzusetzten und es hat geklappt danke
mfg
---C#
-
es heisst:
http://google.de
und nicht
http:\\google.de