- 1
Start Microsoft Visual Basic Express, select "New Project..." from the left pane on your screen. Select "Windows Forms Application" to create a .NET Windows application with a GUI interface. Click "OK."
- 2
Press "Ctrl+Alt+X" to display the "Toolbox" menu, double-click "ListBox" and double-click "Button" to add the controls to your form.
- 3
Double-click "Button1" to open the "Form1.vb" module.
Type the following to add data to the list box control:
Me.ListBox1.Items.Add("This")
Me.ListBox1.Items.Add("is")
Me.ListBox1.Items.Add("a")
Me.ListBox1.Items.Add(".NET")
Me.ListBox1.Items.Add("Application")
Press "F5" and click "Button1" to run your application.
- 4
Open Microsoft Visual Basic Express and click "New Project..." on the left pane of your screen. Double-click "Console Application."
- 5
Open Microsoft Visual Basic Express and click "New Project..." on the left pane of your screen. Double-click "Console Application."
- 6
Copy and paste the following code to your "Module1.vb" module to display information to the output Window:
Module Module1
Sub Main()
Console.Write("This ")
Console.Write("is ")
Console.Write("a ")
Console.Write(".NET ")
Console.Write("Application.")
MsgBox("Done")
End Sub
End Module
- 7
Press "F5" to run your application.
5/19/11
How to Develop Microsoft .NET Applications for Windows
Microsoft Visual Studio provides developers with a complete set of programming development tools for building .NET applications for Windows. Visual Basic .NET, also known as VB.NET, can be used to develop Windows applications with Graphical User Interfaces (GUI) or without them. The Microsoft .NET framework gives developers the flexibility to use the same environment to develop desktop, web, or mobile applications. In a few steps you can write code for two .NET applications, one using a GUI and another without it.
No comments:
Post a Comment
Please do not spam.