Problems with my tabbed webbrowser in VB 2010

15 pts.
Tags:
VB 2010 express
I want to make a webbrowser with only 5 tabpages. but i have in every tabpage an webbrowser , so i tried this Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click If TabControl1 = TabPage1 Then WebBrowser1.Navigate(ComboBox1.Text) End If If TabControl1 = TabPage2 Then WebBrowser2.Navigate(ComboBox1.Text) End If If TabControl1 = TabPage3 Then WebBrowser3.Navigate(ComboBox1.Text) End If If TabControl1 = TabPage4 Then WebBrowser4.Navigate(ComboBox1.Text) End If If TabControl1 = TabPage5 Then WebBrowser5.Navigate(ComboBox1.Text) End If End Sub And I get this error in my error list 5 times: Error 1 Operator '=' is not defined for types 'System.Windows.Forms.TabControl' and 'System.Windows.Forms.TabPage'.

Software/Hardware used:
Visual basic 2010 Express

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    You can't use "=" for those. You can possibly use the Object.Equals method; it's valid for System.Windows.Forms objects. I don't know what you can expect, though, because I don't see how anything is created. -- Tom
    125,585 pointsBadges:
    report
  • carlosdl
    TabControl and TabPage are different types.  You can't compare them.  If you want to determine the currently selected tab page you will need to use the TabControl's SelectedTab property.
    70,220 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following