| Author |
Message |
Hrqls De Blonde Puffin
Joined: 22 Oct 2004 Posts: 558 Location: Alkmaar, The Netherlands
|
Posted: Wed Jun 18, 2003 7:36 am Post subject: Hello World - VB.NET and C# |
|
|
| can anyone please post the most simple Hello World code in vb.net as well as in c# ? The specialty of the house ? thats me (cheap as always)
For your questions about Visual Basic pay a visit to : Visual Basic Explorer When you want to have some more fun come to : The Programmers Corner Edited by: BeadyEye at: 6/26/03 2:04 pm
|
|
| Back to top |
|
 |
Eric Idea Hamster
Joined: 21 Oct 2004 Posts: 679 Location: Bangor, Maine
|
Posted: Wed Jun 18, 2003 8:36 am Post subject: Re: Hello World |
|
|
| I got a "Hello World" sample on my website in C#. Nothing in VB.Net yet though.
Eric D. Burdo, RLI Solutions
Erix World of Programming - Tutorials, Source Code, Articles and Tips on programming in VB, VB.Net, C#, PHP and C/C++ the drop ship guide - The complete guide on to how to get started with wholesale drop shipping.
|
|
| Back to top |
|
 |
bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
Posted: Wed Jun 18, 2003 8:53 am Post subject: Re: Hello World |
|
|
Create a console App:
' project created on 6/18/2003 at 9:48 AMImports SystemModule Main Sub Main() Console.WriteLine("Hello World!") End SubEnd Module
Programmer's Corner - .NET, Web Development, SQL, C++, and more.Edited by: BeadyEye at: 6/18/03 9:53 am
|
|
| Back to top |
|
 |
bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
Posted: Wed Jun 18, 2003 9:04 am Post subject: Re: Hello World |
|
|
Or as a form:
' created on 6/18/2003 at 10:07 AMImports SystemImports System.Windows.FormsModule Main        Sub Main                Dim fMainForm As New MainForm                fMainForm.ShowDialog()        End Sub                Public Class MainForm                Inherits System.Windows.Forms.Form                 Public Sub New                 MyBase.New()                        Me.Text = "This is my form"                        MsgBox("Hello World")                End Sub                        End Class        End Module Programmer's Corner - .NET, Web Development, SQL, C++, and more. |
|
| Back to top |
|
 |
ModusPonens if A then B, if B then C...
Joined: 22 Oct 2004 Posts: 363 Location: Baltimore
|
Posted: Wed Jun 18, 2003 10:42 am Post subject: Re: Hello World |
|
|
OK, I'm curious if this will work. I wrote this in SharpDevelop and I'm wondering how it would work in .Net. It doesn't look much like the samples above.
//My first C# program created on 6/12/2003 at 7:01 PMnamespace HelloWorld{ using System; public class Class1 { //Start of program //public Class1() //{ //} public static int Main(string[] args) { //prompt for name Console.WriteLine("Enter your name:") ; //read the entered name string sName = Console.ReadLine(); //greet user with an annoying message Console.WriteLine("Hello " +sName +", it feels weird making a program this simplistic!") ; Console.WriteLine("But this SharpDevelop program isn't too bad for a free program.") ; //wait for user to acknowledge Console.WriteLine("Hit Enter to terminate...") ; Console.Read(); return 0; } }} Edited by: BeadyEye at: 6/18/03 11:57 am
|
|
| Back to top |
|
 |
bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
|
| Back to top |
|
 |
ModusPonens if A then B, if B then C...
Joined: 22 Oct 2004 Posts: 363 Location: Baltimore
|
Posted: Wed Jun 18, 2003 11:36 am Post subject: Re: Hello World |
|
|
| Oh good, I didn't want to think I was wasting my time with SharpDevelop. I see you edited my post, I guess I forgot to turn off the emoticons again, doh! |
|
| Back to top |
|
 |
bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
|
| Back to top |
|
 |
Hrqls De Blonde Puffin
Joined: 22 Oct 2004 Posts: 558 Location: Alkmaar, The Netherlands
|
Posted: Tue May 02, 2006 12:20 am Post subject: Re: Hello World |
|
|
| Eric wrote: | | I got a "Hello World" sample on my website in C#. Nothing in VB.Net yet though. <p><BR><BR><B>Eric D. Burdo, <A HREF="http://www.rlisolutions.com" TARGET="_BLANK">RLI Solutions</A></B><BR><BR><HR><FONT SIZE="2"><A HREF="http://www.erix-world.com" TARGET="_BLANK">Erix World of Programming</A> - Tutorials, Source Code, Articles and Tips on programming in VB, VB.Net, C#, PHP and C/C++<BR><A HREF="http://www.thedropshipguide.com" TARGET="_blank">the drop ship guide</A> - The complete guide on to how to get started with wholesale drop shipping.</FONT><HR></p><i></i> |
i guess your tutorials and sample codes would be on http://www.erix-world.com/
but that site isnt there anymore (although i can buy it )
do you still have the contents online somewhere else ? |
|
| Back to top |
|
 |
bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
|
| Back to top |
|
 |
Hrqls De Blonde Puffin
Joined: 22 Oct 2004 Posts: 558 Location: Alkmaar, The Netherlands
|
Posted: Fri May 05, 2006 12:55 pm Post subject: |
|
|
thanks
i got my book on C# yesterday .. its quite nice
(sams 24 C# in 24 hours) |
|
| Back to top |
|
 |
|