Stupid Error on VB.NET IDE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • João Santa Bárbara

    #1

    Stupid Error on VB.NET IDE

    Hi all.

    i have a funny error in the IDE but only in one form. :(

    i have declare a Method like this "Private Sub MyTransGForms(B yVal sender As
    Object, ByVal e As EventArgs)"
    and i have an handler to it.

    and in the same form i have this calling

    AddHandler frm.TranslateFo rm, AddressOf Me.MyTransGForm s
    frm.ShowDialog( )
    RemoveHandler frm.TranslateFo rm, AddressOf Me.MyTransGForm s

    The problem is in this declaration the AddressOf Me.MyTransGForm s is getting
    an error, and error is 'MyTransGForms' is not a member of MyForm', what a
    stupid error, i have both in the same class.
    when i change the name of my method from MyTransGForms to MyTransGForms1 and
    change back again to MyTransGForms it start to work. anyone knows how to
    solve this stupid Error ???

    thks
    JSB


  • Cor Ligthert

    #2
    Re: Stupid Error on VB.NET IDE

    Joao,

    How are you so sure it was not a typo the first time.

    Because at the moment it is good and probably you cannot reproduce it.

    Otherwise show us a snippet of code so that we can test it as well.

    Cor


    Comment

    • azerty

      #3
      Re: Stupid Error on VB.NET IDE


      "Cor Ligthert" <notmyfirstname @planet.nl> a écrit dans le message de
      news:usuTi%23MR FHA.2932@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > Joao,
      >
      > How are you so sure it was not a typo the first time.
      >
      > Because at the moment it is good and probably you cannot reproduce it.
      >
      > Otherwise show us a snippet of code so that we can test it as well.
      >
      > Cor
      >
      >[/color]


      Comment

      • Steve Amey

        #4
        Re: Stupid Error on VB.NET IDE

        Hiya

        Are you still getting this error? When the build error comes up, does it go
        away if you re-open the project?

        Kind Regards,
        Steve

        "João Santa Bárbara" <joaosb@i24port ugal.com> wrote in message
        news:Oo9YhrMRFH A.3496@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Hi all.
        >
        > i have a funny error in the IDE but only in one form. :(
        >
        > i have declare a Method like this "Private Sub MyTransGForms(B yVal sender
        > As Object, ByVal e As EventArgs)"
        > and i have an handler to it.
        >
        > and in the same form i have this calling
        >
        > AddHandler frm.TranslateFo rm, AddressOf Me.MyTransGForm s
        > frm.ShowDialog( )
        > RemoveHandler frm.TranslateFo rm, AddressOf Me.MyTransGForm s
        >
        > The problem is in this declaration the AddressOf Me.MyTransGForm s is
        > getting an error, and error is 'MyTransGForms' is not a member of
        > MyForm', what a stupid error, i have both in the same class.
        > when i change the name of my method from MyTransGForms to MyTransGForms1
        > and change back again to MyTransGForms it start to work. anyone knows how
        > to solve this stupid Error ???
        >
        > thks
        > JSB
        >[/color]


        Comment

        Working...