Conversion

G

Guest

hi could someone help me convert this c# code
public event EventHandler TextChanged {
add {
Events.AddHandler(EventTextChanged, value);
}
remove {
Events.RemoveHandler(EventTextChanged, value);
}
}
 
T

Tom Shelton

hi could someone help me convert this c# code
public event EventHandler TextChanged {
add {
Events.AddHandler(EventTextChanged, value);
}
remove {
Events.RemoveHandler(EventTextChanged, value);
}
}

Hmm... I don't think this code can actually be translated into VB.NET.
VB.NET doesn't let you control the adding and removing of delegate
instances, AFIK.
 
G

Guest

YES SIR THIS IS IN C#. Refer to my next new post in the same forum to know
know what this is.
 
G

google_groups3

NEWBIE, you should not use Sir with Cor. It is a girls name in his
country. Although he insists that he is male he is actually female (or
gay).
 
H

Herfried K. Wagner [MVP]

NEWBIE said:
hi could someone help me convert this c# code
public event EventHandler TextChanged {
add {
Events.AddHandler(EventTextChanged, value);
}
remove {
Events.RemoveHandler(EventTextChanged, value);
}
}

Currently this is not supported in VB.NET. However, similar code will be
supported in VB 2005. In the meantime just use VB.NET's 'Event' syntax and
'AddHandler'/'RemoveHandler'.
 
C

Cor Ligthert

There are always people who want to insult two nations at once.

And than they have not the courage to use there email address however sent
it anonymous.

Probably not a man, however a chicken

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top