what in vb.net....

S

Supra

how od i convert into vb.net.......i can't recalled it.
in vc#:
this.MdiChildActivate+=new EventHandler(ChildForms_Activate);
how will i do in vb.net?
regards
 
M

mona

Hi spura,

The VB.NET version of you code snippet is as follows:

Me.MdiChildActivate += New EventHandler(ChildForms_Activate)

HTH

Mona
 
S

Supra

nope that not right....
Hi spura,

The VB.NET version of you code snippet is as follows:

Me.MdiChildActivate += New EventHandler(ChildForms_Activate)

HTH

Mona
 
H

Herfried K. Wagner [MVP]

Supra said:
how od i convert into vb.net.......i can't recalled it.
in vc#:
this.MdiChildActivate+=new EventHandler(ChildForms_Activate);
how will i do in vb.net?

\\\
AddHandler Me.MdiChildActivate, AddressOf Me.ChildForms_Activate
///

'RemoveHandler' can be used instead of '-='.
 
C

Chris Dunaway

I don't think that works in VB. You should use the AddHandler
statement:

AddHandler Me.MdiChildActivate, AddressOf ChildForms_Activate
 

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