473,387 Members | 1,510 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,387 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
Nov 21 '05 #1
3 1047
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
Nov 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

Nov 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

Nov 21 '05 #4

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

Similar topics

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...
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...
15
by: sparks | last post by:
We get more and more data done in excel and then they want it imported into access. The data is just stupid....values of 1 to 5 we get a lot of 0's ok that alright but 1-jan ? we get colums...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.