how to convert...

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

Guest

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
 
S

Supra

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top