![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member (25+)
Join Date: Jun 2009
Location: Mesquite, NV (about 75 mi from Las Vegas)
Age: 15
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
![]() OS:
|
Ok so I need some help.
I set up everything on the toolstrip except the obvious tabControl1. I typed in the URL box and clicked go and it said something about how the thing is null but how? does anybody know the code? this is all I got so far: private void button1_Click(object sender, EventArgs e) { (this is where the go button is...i need the code so when i click on it-it navigates to the page i typed in textBox1) } private void toolStripButton1_Click(object sender, EventArgs e) { WebBrowser Browse = new WebBrowser(); tabControl1.TabPages.Add("Page" + 1); tabControl1.SelectTab(i - 1); Browse.Name = "wb"; Browse.Dock = DockStyle.Fill; tabControl1.SelectedTab.Controls.Add(Browse); i = i + 1; } |
|
|
|
|
#2 |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: tabControl help please -C#
Can't do anything with just a piece of code. which version of c# are you using ? 2005 or 2008 ? and attach the complete code (simply rar the folder and attach).
__________________
Please don't click here |
|
|
|
|
#3 |
|
Junior Member (25+)
Join Date: Jun 2009
Location: Mesquite, NV (about 75 mi from Las Vegas)
Age: 15
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
![]() OS:
|
Re: tabControl help please -C#
I am using Visual Basics 2008 and I will send you my form1.cs as a .zip below...(or wherever it appears
)BTW...thanks for the reply...and finally my post got approved. |
|
|
|
|
#4 |
|
Junior Member (25+)
Join Date: Jun 2009
Location: Mesquite, NV (about 75 mi from Las Vegas)
Age: 15
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
![]() OS:
|
Re: tabControl help please -C#
I'll try the recent code I found:
private void button1_Click(object sender, EventArgs e) { ((WebBrowser)tabControl1.SelectedTab.Controls[0]).Navigate(textBox1.Text); } hopefully it will work. |
|
|
|
|
#5 |
|
Junior Member (25+)
Join Date: Jun 2009
Location: Mesquite, NV (about 75 mi from Las Vegas)
Age: 15
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
![]() OS:
|
Re: tabControl help please -C#
NEW UPDATE: Doesn't work
please...someone help |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |