J
João Santa Bárbara
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(ByVal 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.TranslateForm, AddressOf Me.MyTransGForms
frm.ShowDialog()
RemoveHandler frm.TranslateForm, AddressOf Me.MyTransGForms
The problem is in this declaration the AddressOf Me.MyTransGForms 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
i have a funny error in the IDE but only in one form.
i have declare a Method like this "Private Sub MyTransGForms(ByVal 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.TranslateForm, AddressOf Me.MyTransGForms
frm.ShowDialog()
RemoveHandler frm.TranslateForm, AddressOf Me.MyTransGForms
The problem is in this declaration the AddressOf Me.MyTransGForms 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