473,398 Members | 2,812 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,398 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 1301
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.