|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
what in vb.net....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 Hi spura,
The VB.NET version of you code snippet is as follows: Me.MdiChildActivate += New EventHandler(ChildForms_Activate) HTH Mona Show quoteHide quote "Supra" <supr***@rogers.com> wrote in message news:%23%23OCXCGNFHA.2704@TK2MSFTNGP15.phx.gbl... > 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 > nope that not right....
mona wrote: Show quoteHide quote > Hi spura, > > The VB.NET version of you code snippet is as follows: > > Me.MdiChildActivate += New EventHandler(ChildForms_Activate) > > HTH > > Mona > > "Supra" <supr***@rogers.com <mailto:supr***@rogers.com>> wrote in > message news:%23%23OCXCGNFHA.2704@TK2MSFTNGP15.phx.gbl... > > 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 > > "mona" <m***@discussions.microsoft.com> schrieb: No ;-).>The VB.NET version of you code snippet is as follows: > >Me.MdiChildActivate += New EventHandler(ChildForms_Activate) -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> I don't think that works in VB. You should use the AddHandler
statement: AddHandler Me.MdiChildActivate, AddressOf ChildForms_Activate thank man(herfried and dunaway. i forgot about addhandler.
regards Chris Dunaway wrote: Show quoteHide quote >I don't think that works in VB. You should use the AddHandler >statement: > >AddHandler Me.MdiChildActivate, AddressOf ChildForms_Activate > > > "Supra" <supr***@rogers.com> schrieb: \\\> 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 '-='. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
64 HI/LO DWORD extraction vb.net
Excel ADO question Using a variable to specify the name of a control Datalist/datatable sorting Cannot Get MenuItem's name[Notsolved] SQL-question VB.NET (ASP) Can't convert Dates...help! Formatting timespan objects how to use CurrentRowIndex for datagrid control ? memory stream XML and unicode problem |
|||||||||||||||||||||||