Home All Groups Group Topic Archive Search About
Author
30 Mar 2005 6:53 PM
Supra
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,

Author
30 Mar 2005 6:57 PM
Crouchie1998
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
Author
30 Mar 2005 7:17 PM
Supra
:-\

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
>
>

>
Author
30 Mar 2005 7:57 PM
Herfried K. Wagner [MVP]
"Supra" <supr***@rogers.com> schrieb:
>>Go to http://www.google.com & search for an online translator. You can
>>then
>>translate it.
>
>  :-\

Do all of them fail?

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/>
Author
30 Mar 2005 11:33 PM
David Anton
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,
>
>
Author
7 Apr 2005 9:36 AM
Supra
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,
>>
>>
>>   
>>