how to convert...

  • Thread starter Thread starter Supra
  • Start date Start date
S

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,
 
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
 
thank :-) . that better.

David said:
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

:


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,
 
Back
Top