CIS205 - Visual Basic - Week 1

Introduction


Class Notes

When creating a New solution:

 
   When your assignment is complete

    Some Naming Conventions

        Prefix each control with the appropriate convention:

btn

Button

btnCustService

txt

TextBox

txtFirstName

lbl

Label

lblMessage

frm

Form

frmMain

 


Example 1 Source Code

Imports System
Module Week00101
    Sub Main()
        Console.WriteLine("Hello World")
    End Sub
End Module

        

        Compile using VBC Week0101.vb         

    

        Download the source

 


Example 2 

        Download the source and batch file

 


Example 3

        Use VS.Net to build the program


Example 4

        Button Event Handler

lblFull.Text = txtLast.Text & ", " & _

txtFirst.Text & " " & _

txtMiddle.Text.Substring(0, 1) & "."

 

        Exit Event Handler
                Close()


Example 5

    Download the background image

 


Assignment

        Send an email message to CIS205_Assignments@hotmail.com with a Subject to Intro
        
        Problem 1.4    Company Contacts
            Package and email the project as detailed above


Return to Home Page