Entry
Microsoft: .NET: Visual Studio: Visual Basic.NET: How to create a 'hello world' windows application?
Jan 10th, 2004 12:39
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 08 December 2003 - 08:08 pm -------------------
Microsoft: .NET: Visual Studio: Visual Basic.NET: How to create
a 'hello world' windows application?
---
Steps: Overview:
1. -Create a new Visual Basic application
2. -Double click e.g. on a button icon
3. -This will place a button on the form
4. -Double click on this button
5. -You are then able to type some source
text in the area.
e.g. MsgBox( "Hello World from Visual Basic" )
6. -So all together this becomes:
--- cut here ---------------------------------------------------------
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
MsgBox("Hello World from Visual Basic.net")
End Sub
End Class
--- cut here ---------------------------------------------------------
7. -Press e.g. <F5> to run the application
(possibly do a 'Build' first
<CTRL><SHIFT><B>)
8. -You will then see a box showing a button.
9. -If you click on this button it will show
+-------------------------------------+
| |
| |
| Hello World from Visual Basic.net |
| |
| +----+ |
| | OK | |
| +----+ |
+-------------------------------------+
---
---
Internet: see also:
---
Learn Visual Basic .NET
http://visualbasic.about.com/library/bllvb-neta.htm
---
Microsoft:Visual Studio: Project: Create: New: Can you give overview?
[console / windows / Internet]
http://www.faqts.com/knowledge_base/view.phtml/aid/28187/fid/1600
----------------------------------------------------------------------