Converting C# class to VB.Net

G

Guest

Hi All,
I need a little help converting a class to vb.net. I have the following to
convert:
internal class BBBSDIForm : BBBForm
{
public BBBSDIForm(FormInfo fi, FormMgr formMgr) : base(fi, formMgr)
{
sysform=new SmartForm(formMgr, this, fi.pos);
sysform.Text=fi.caption;
sysform.ClientSize=fi.size;
}

public override void Show()
{
sysform.View.Visible=true;
sysform.Show();
base.Show();
}
}

My main question deals with the first function (Constructor), How do I go
about converting the last part of the call
public BBBSDIForm(FormInfo fi, FormMgr formMgr) : base(fi, formMgr)
in C#, what is (how do I convert) the : base(fi, formMgr) in the above line.
Thanks for any help.
Michael Lee
 
H

Herfried K. Wagner [MVP]

Michael said:
My main question deals with the first function (Constructor), How do I go
about converting the last part of the call
public BBBSDIForm(FormInfo fi, FormMgr formMgr) : base(fi, formMgr)
in C#, what is (how do I convert) the : base(fi, formMgr) in the above
line.

Add 'MyBase.New(fi, formMgr)' to the first line in your 'Sub New'.

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>
 
G

Guest

Friend Class BBBSDIForm : Inherits BBBForm
Public Sub New(ByVal fi As FormInfo, ByVal formMgr As FormMgr)
MyBase.New(fi, formMgr)
sysform = New SmartForm(formMgr, Me, fi.pos)
sysform.Text=fi.caption
sysform.ClientSize=fi.size
End Sub

Public Overrides Sub Show()
sysform.View.Visible=True
sysform.Show()
MyBase.Show()
End Sub
End Class

Regards,
David Anton
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter and the Instant VB C# to
VB.NET converter
 

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