TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Programming

Notices

tabControl help please -C#

Programming


Closed Thread
 
Thread Tools Display Modes
Old 02-06-2009, 01:21 PM   #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 AdvancedSoftware is an unknown quantity at this point


OS: Windows XP


Exclamation tabControl help please -C#

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;
}
AdvancedSoftware is offline  
Old 03-06-2009, 03:51 AM   #2
ƒ(ψ)=ΘΊΧφ
 
bakuryu's Avatar
 
Join Date: May 2006
Location: India
Age: 23
Posts: 6,621
Thanks: 19
Thanked 645 Times in 603 Posts
Rep Power: 87 bakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant future


OS: Windows XP Windows Vista Windows 7


Send a message via Yahoo to bakuryu
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
bakuryu is offline  
Old 03-06-2009, 04:51 AM   #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 AdvancedSoftware is an unknown quantity at this point


OS: Windows XP


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.
Attached Files
File Type: zip Form1.zip (580 Bytes, 3 views)
AdvancedSoftware is offline  
Old 03-06-2009, 06:08 AM   #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 AdvancedSoftware is an unknown quantity at this point


OS: Windows XP


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.
AdvancedSoftware is offline  
Old 03-06-2009, 07:33 AM   #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 AdvancedSoftware is an unknown quantity at this point


OS: Windows XP


Re: tabControl help please -C#

NEW UPDATE: Doesn't work please...someone help
AdvancedSoftware is offline  
Closed Thread

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 08:03 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional