Showing posts with label Hello World. Show all posts
Showing posts with label Hello World. Show all posts

Tuesday, July 2, 2013

Create the following interface by utilizing the simple concepts discussed by your instructor.


Graphical User Interface:


Source Code:


Private Sub cmdClose_Click()
If MsgBox("Are you sure you want to end this program?", vbQuestion + vbYesNo, "Hello World Application") = vbYes Then
    End
End If
End Sub

Private Sub cmdPrint_Click()
If cmdPrint.Caption = "&Print" Then
    txtPrint.Text = "Hello World!"
    cmdPrint.Caption = "&Clear"
Else
    txtPrint.Text = ""
    cmdPrint.Caption = "&Print"
End If
End Sub

Private Sub Form_Load()
'Setting off the form on the center of the monitor.
    Me.Top = (Screen.Height - Me.Height) / 3
    Me.Left = (Screen.Width - Me.Width) / 2
End Sub

Download the Full Project by clicking here.

Thursday, June 13, 2013

Adopting the concepts of C programming, a train individual can perform simple programming in Visual Basic Studio 2010.
A simple console application printing hello world on screen.

Hello World Console Application

  1. Open Visual Basic 2010 Express
  2. Click New Project
  3. Select Console Application 
    Type the name of application. Hello World
  4. Click OK
Coding the Console Application
  1. In the module1.vb, we can directly type the code below:
  2. Code:
Console.Writeline("Hello World")
Console.Readline()

Press Function Key F5 to run your first vb.net console application.

Enjoy your programming skills in Visual Basic Studio 2010 Express.


Tuesday, June 11, 2013

The programs presented here illustrate best practices in C programming primer. Writing C programs helps learner to simulate other programming language that he/she may encounter in the future like C++, C#, Java and PHP.

Hello World Program

#include<stdio.h>
main()
{
printf("Hello World!\n");
getch();
}

Output of the Program:
Hello World!