Adblock breaks this site

annoying error

Discussion in 'Programming General' started by iloverares, May 20, 2011.

  1. iloverares

    iloverares Member

    Joined:
    Nov 23, 2010
    Posts:
    64
    Referrals:
    0
    Sythe Gold:
    0
    annoying error

    in this part of code,

    Private Sub Timer1_Tick(ByVal Sender As System.Object, ByVal e As System.EventArgs) Handles Timer1_Tick:mad:
    Label1.Text = CType(TabControl1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser).StatusText

    End Sub

    i keep getting a error saying "." expected (where the mad face is) however when i put it there i get 2 other errors :/ any help?
     
  2. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    annoying error

    needs to be:
    Code:
    Private Sub Timer1_Tick(ByVal Sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 
        Label1.Text = CType(TabControl1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser).StatusText
    End Sub
     
< VB and C++ | How to protect my VB apps? >


 
 
Adblock breaks this site