|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to convert...in vc# : private delegate void NewFormDelegate(Form f); public void NewMdiForm(Form f) { this.Invoke(new NewFormDelegate(NewForm),new object[1]{f}); } in vb.net :...... but i'm not sure if this is right way.... Delegate Sub NewFormDelegate(ByVal f As Form) Private Deleg As NewFormDelegate Public Sub NewMdiForm(ByVal f As Form) Deleg = New NewFormDelegate(AddressOf NewForm) Me.Deleg.Invoke(f) End Sub is that right or wrong......? regards, Go to http://www.google.com & search for an online translator. You can then
translate it. Its not the job of this newsgroup to do it for you :-\ Crouchie1998 wrote:Show quoteHide quote >Go to http://www.google.com & search for an online translator. You can then >translate it. > >Its not the job of this newsgroup to do it for you > > > > "Supra" <supr***@rogers.com> schrieb: Do all of them fail?>>Go to http://www.google.com & search for an online translator. You can >>then >>translate it. > > :-\ Converting code between .NET programming languages <URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Our Instant VB C# to VB.NET converter produces:
Private Delegate Sub NewFormDelegate(ByVal f As Form) Public Sub NewMdiForm(ByVal f As Form) Me.Invoke(New NewFormDelegate(AddressOf NewForm),New Object(0){f}) End Sub David Anton www.tangiblesoftwaresolutions.com Home of the Instant C# VB.NET to C# converter and the Instant VB C# to VB.NET converter Show quoteHide quote "Supra" wrote: > how to convert fromVC# to VB.net.... > in vc# : > > private delegate void NewFormDelegate(Form f); > > public void NewMdiForm(Form f) > { > this.Invoke(new NewFormDelegate(NewForm),new > object[1]{f}); > } > > in vb.net :...... > but i'm not sure if this is right way.... > > Delegate Sub NewFormDelegate(ByVal f As Form) > Private Deleg As NewFormDelegate > > Public Sub NewMdiForm(ByVal f As Form) > Deleg = New NewFormDelegate(AddressOf NewForm) > Me.Deleg.Invoke(f) > End Sub > > is that right or wrong......? > regards, > > thank :-) . that better.
David Anton wrote: Show quoteHide quote >Our Instant VB C# to VB.NET converter produces: > >Private Delegate Sub NewFormDelegate(ByVal f As Form) > >Public Sub NewMdiForm(ByVal f As Form) > Me.Invoke(New NewFormDelegate(AddressOf NewForm),New >Object(0){f}) >End Sub > >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: > > > >>how to convert fromVC# to VB.net.... >>in vc# : >> >>private delegate void NewFormDelegate(Form f); >> >>public void NewMdiForm(Form f) >> { >> this.Invoke(new NewFormDelegate(NewForm),new >>object[1]{f}); >> } >> >>in vb.net :...... >>but i'm not sure if this is right way.... >> >>Delegate Sub NewFormDelegate(ByVal f As Form) >> Private Deleg As NewFormDelegate >> >>Public Sub NewMdiForm(ByVal f As Form) >> Deleg = New NewFormDelegate(AddressOf NewForm) >> Me.Deleg.Invoke(f) >> End Sub >> >>is that right or wrong......? >>regards, >> >> >> >>
Refresh DataSet - please Help Me :-(
Get Variable Out of Arraylist ReInstantiate an Object? How can I determine WHICH exception I got in my CATCH? Advice needed using StringBuilder class for concatenation? Storing multiple text files inone file. How to restrict the multiple opening of the Same window... a checkbox in a datagrid add dsn programmatorically |
|||||||||||||||||||||||