helloworld in VB.NET

  • Thread starter Thread starter Michael Sgier
  • Start date Start date
M

Michael Sgier

Hi
is this c#? How would this look in VB.NET?
Thanks
Michael



using XPlane;

public class plugin_HelloWorld {

public static void Main() {

XPlane.Widgets.Windows.Window newWin = new
XPlane.Widgets.Windows.Window();
newWin.setSize( 200, 500, //left, top
320, 240 //width, height
);
newWin.setDescriptor( "Hello World" );
newWin.Create();

}

}
 
I've also two *.dll.
How shall i integrate them with my first mono project?
Thanks
 
This is from memory but it would be something like:

Public Class plugin_HelloWorld

Public Shared Sub Main()

Dim newWin as new XPlane.Widgets.Windows.Window()
newWin.setSize( 200, 500, 320, 240)
newWin.setDescriptor( "Hello World" )
newWin.Create()

End Sub

End Class
 
Thanks Ciaran
what about this in VB.NET?

using XPlane;

and what about the 2 dlls?
Thanks again
Michael
 
Teme64 said:
Using XPlane

End Using

No, that's the VB equivalent of the using *statement* instead of the
using *directive*. Peter's answer (the Imports statement) is the
correct translation here.
 
Back
Top