By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,696 Members | 1,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,696 IT Pros & Developers. It's quick & easy.

what in vb.net....

P: n/a
in vc# :
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <==== error
occured in bold
regards

Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Supra" <su*****@rogers.com> schrieb:
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <==== error
occured in bold


Are you sure your form has a 'ChildFormsActivate' event?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
yes

Herfried K. Wagner [MVP] wrote:
"Supra" <su*****@rogers.com> schrieb:
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <====
error occured in bold

Are you sure your form has a 'ChildFormsActivate' event?


Nov 21 '05 #3

P: n/a
Private ChildFormsActivate As EventHandler = Nothing
that all

Herfried K. Wagner [MVP] wrote:
"Supra" <su*****@rogers.com> schrieb:
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <====
error occured in bold

Are you sure your form has a 'ChildFormsActivate' event?


Nov 21 '05 #4

P: n/a
ChildFormsActivate = New EventHandler(AddressOf ChildForms_Activate)

Did you mean:
ChildFormsActivate += ... ?

David Anton
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter and the Instant VB C# to
VB.NET converter

"Supra" wrote:
in vc# :
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <==== error
occured in bold
regards

Nov 21 '05 #5

P: n/a
yes! but convert to vb.net.

David Anton wrote:
ChildFormsActivate = New EventHandler(AddressOf ChildForms_Activate)

Did you mean:
ChildFormsActivate += ... ?

David Anton
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter and the Instant VB C# to
VB.NET converter

"Supra" wrote:
in vc# :
ChildFormsActivate=new EventHandler(ChildForms_Activate)
how will i do in vb.net?
AddHandler ChildFormsActivate, AddressOf ChildForms_Activate <==== error
occured in bold
regards


Nov 21 '05 #6

P: n/a
"Supra" <su*****@rogers.com> schrieb:
ChildFormsActivate = New EventHandler(AddressOf ChildForms_Activate)

Did you mean:
ChildFormsActivate += ... ?


yes! but convert to vb.net.


Maybe 'Delegate.Combine' is what you are looking for...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.