473,473 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

helloworld in VB.NET

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();

}

}
Sep 24 '08 #1
6 1244
I've also two *.dll.
How shall i integrate them with my first mono project?
Thanks
Sep 24 '08 #2
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
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Michael Sgier" wrote:
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();

}

}
Sep 24 '08 #3
Thanks Ciaran
what about this in VB.NET?

using XPlane;

and what about the 2 dlls?
Thanks again
Michael

Sep 24 '08 #4
On Wed, 24 Sep 2008 08:25:38 -0700, Michael Sgier <sg***@nospam.comwrote:
Thanks Ciaran
what about this in VB.NET?

using XPlane;
I think VB.NET has an "Imports" statement that you should use.
and what about the 2 dlls?
That's an assembly-level thing, and should work the same (i.e. just add
them as references to your project).

All that said, there's a VB.NET newsgroup where you can ask about writing
VB.NET questions.

Pete
Sep 24 '08 #5
Michael Sgier wrote:
Thanks Ciaran
what about this in VB.NET?

using XPlane;

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

End Using

--

Teme64 @ http://windevblog.blogspot.com
Sep 24 '08 #6
Teme64 <te*****@gmail.comwrote:
Michael Sgier wrote:
Thanks Ciaran
what about this in VB.NET?

using XPlane;

and what about the 2 dlls?
Thanks again
Michael

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.

--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Sep 24 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ringbearer | last post by:
i'm trying to compile the vb helloworld program that's presented in the online library. when i try to run the build.bat file, i get the following error C:\Program Files\Microsoft.NET\SDK\v1.1...
2
by: carolineb2005 | last post by:
I have compiled this simple program which accept arguments on line using System; class HelloWorld { public static void Main(string args) { Console.WriteLine("Hello ", args); } }
1
by: Hayato Iriumi | last post by:
I guess I'm going through initiation while I try to get into C++. I can't even compile a Hello World app. Here is the code... #include <iostream> using namespace std; void main() { cout <<...
3
by: Mister.programmer | last post by:
Hi, I can't compile anything with vbc, so i am asking for help please. I have a file helloworld.aspx written in asp.net using vb, here it is: <script runat="server" language="vb">...
1
by: Thom Little | last post by:
I am trying to create the HelloWorld web service on localhost and consume it from a separate project (C# code behind) on local host. I created the service, executed WSDL, and executed CSC to...
9
by: Richard Lionheart | last post by:
Hi All, I've got Visual Studio .Net installed, but I don't know it very well. So I tried to create a plain old Win32 using the command-line complier. I tried to compile: ************...
1
by: 张沈鹏 | last post by:
How to compile the HelloWorld of boost.asio? Maybe this is a stupid problem , but I really don't konw how to find the right way. My compile environment is WinXP, Msys , MinGw , G++ 3.4.2,...
2
by: darko | last post by:
ok, i'm just starting out, with c++ and i downloaded some wideos, i'm working on VS.NET 2005, and hthe first script is helloworld #include <iostream> main() { std::cout << "Hello World"; }...
4
by: devgupta01 | last post by:
Hi all, I have simple program- "HelloWorld.java" to run at eclipse. Java Version 1.4.2 Eclipse Version 3.2 class HelloWorld { public static void main(String aa) {
1
by: Wendi Turner | last post by:
I was just trying to consume the simple HelloWorld webservice that comes in Visual Studio 2005 with a simple ASP.NET WebSite. We have created the web reference to the url that serves the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.