473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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(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
Jul 21 '05 #1
3 1297
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
Jul 21 '05 #2

"Cor Ligthert" <no************@planet.nl> a écrit dans le message de
news:us****************@TK2MSFTNGP09.phx.gbl...
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

Jul 21 '05 #3
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" <jo****@i24portugal.com> wrote in message
news:Oo**************@TK2MSFTNGP12.phx.gbl...
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

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: raz | last post by:
Greetings all. I apologize for what is almost certainly a stupid question, but I can't figure this out, and have no more time for head bashing... The short version: what is the appropriate...
2
by: Lampa Dario | last post by:
Hi, where is this stupid error in this program? When I execute it, i receive a segmentation fault error. #include <stdio.h> int main(int argc, char *argv, char *env) { int i=0; int l=0; int...
4
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give...
3
by: Amil | last post by:
I must be missing something very simple. I've had a web site running for a long time (anonymous access). Web.config authentication is original (anyone gets in): <authentication mode="Windows"...
4
by: Smoothcoder | last post by:
Hi, there, smart guys! I have an AMD 64 3000+ based system, with Windows XP Professional on it; I recently installed Visual Studio 2003 Enterprise Architect; I created a new C# ASP.NET Web...
5
by: One Handed Man [ OHM# ] | last post by:
I'm doing something stupid !, I must be because this throws no exception, but does not delete the file which "is" there. Amy ideas ? Try System.IO.File.Delete("c:\test.txt") Catch ex As...
3
by: João Santa Bárbara | last post by:
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...
2
by: Ike | last post by:
Im wondering if someone can take a look at this simple INSERT statement which is puking on me. I KNOW I must have something stupid in it that I am NOT seeing, which will likely be obvious to...
5
by: Puppet_Sock | last post by:
So, I'm madly coding away, and my fingers stutter, and I produce this. (mfirstToken is a std::string object.) if(m_firstToken.c_str() == 'M' || m_firstToken.c_str().c_str() == 'T') { // ......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.