Samples from Lectures

README.txt VISUAL BASIC (Standalone) VISUAL BASIC (*.NET Framework) HTML JavaScript VBScript VRML Downloads


 

  README.txt

Download the sample readme.txt file.

  VISUAL BASIC (Standalone)
    

The following examples are intended to give an introduction to the Visual Basic programming language. The examples were written in Visual Basic 6.0 Professional Edition, the version used in the ITB Computer Labs during 2004-2005.

Example 1: For Loop

A simple example of a for loop that iterates over a series of list boxes.

 

Example 2: While Loop

Pops up a modal message box during each iteration of a while loop.

 

Example 3: Do .. While Loop

Similar to example 2, but using a Do .. While loop instead of a while loop.

 

Example 4: Memo Editor

Simple text editor which utilizes the system clipboard for copying and pasting functionality. Illustrates saving and loading of text files.

 

Example 5a: Integer Calculator, No Error Trapping

Calculator with +, -, /, *. Note this version does not check user input for validity. Entering improper values results in run-time errors.

 

Example 5b: Integer Calculator, With Error Trapping

This version of the calculator uses Visual Basic's built-in error handling function to handle improper input.



  VISUAL BASIC .NET (VB version 7.0)
    

The following examples are intended to give an introduction to the Visual Basic .NET programming language. The examples were written in Visual Basic 7.0 (*.net framework) Edition, the version used in the ITB Computer Labs from 2005 onwards.

Difference between VB 6.0 and VB.Net (VB 7.0)

Installation of Visual Studio.Net

How to use Visual Studio.Net

EXAMPLES FOLLOW:

Example 1 : Welcome to SE4D03 in VB.NET

Example1 Exe

Example1 Zip

This is a very simple example to program in Vb.NET. It is possible to execute the *.exe file or download the whole source code in Zip File Format to your local machine.

 

Example 2: For Loop in VB.NET

Example2 Exe

Example2 Zip

This is how to program a "for loop" in VB.NET, and it is almost the same as VB6. For more information click the Visual Basic link.

 

Example 3: While Loop in VB.NET

 

Example3 Exe

Example3 Zip

This is how to program a "while loop" in VB.NET

 

Example 4: Do..While Loop in VB.NEt

Example4 Exe

Example4 Zip

This is how to program a "do .. while" loop in VB.net

 

Example 5: Integer Calculator in VB.NET

Example5 Exe

Example5 Zip

This is how to program a "Do .. While" loop in VB.net

 

 

 


  ASP.NET

Installing IIS on Windows XP Pro

Installation of Visual Studio.Net

Microsoft .NET Framework Version 1.1

About Asp.Net


EXAMPLES FOLLOW:

The following examples are intended to provide an introduction to Asp.Net programing using VB.NET language.
NOTE: The asp.net file extension is "*.aspx".

Example 1 : Hello Word in Asp.Net

hello.aspx

Right click on the file and save it in the default root folder "wwwroot". "http://localhost/hello.aspx"

 

Example 2: Html Vs Asp.Net

Html vs Asp.Net

Right click on the file and save it in the default root folder "wwwroot". "http://localhost/hello.aspx"

 

Example 3: Radio Page in Asp.Net

radio.aspx

Right click on the file and save it in the default root folder "wwwroot". "http://localhost/hello.aspx"

 

Example 4: List Page in Asp.Net

list.aspx

Right click on the file and save it in the default root folder "wwwroot". "http://localhost/hello.aspx"

 


 

  HTML
     A Beginner's Guide to HTML
     Summary of Common HTML Tags
     examp01.htm
     3se3p1.htm
     3se3p2.htm
     table.htm


     formex0.html
     formex1.html
     formex2.html
     formex3.html
     formex4.html
     formex5.html
     formex6.html
     formex7.html
     formex8.html
     formex9.html
     framdefh.html
     framdefv.html



VBScript -- now here!

     MS VBScript primer site.

        

JavaScript -- now here too!

    
JavaScript Object Roadmap(pdf--35K)
        
  lec16ex1.html
lec16ex2.html
lec16ex3.html
lec17ex1.html
lec17ex2.html
lec18ex1.html
lec18ex2.html
lec18ex3.html
lec18ex4.html
lec18ex5.html
lec18ex6.html
 
  cookie
  lec19ex1.html


VRML version 2

    

  VRML Assignment Examples -- Download TV example zip files (& all parts).

 
  1. Download TV example zip file (Zenith(fixed) -- 97Kb).
  2. Download TV example zip file (VDUhop(movie) -- 0.275Mb).
  3. Download TV example zip file (StarWars -- 2.16Mb).


  VRML Tutorial - by Paolo Cerone (Best viewed with Windows Safari(V4) and Cortona Plug-in (as in ITC-237))

 

Take VRML Tutorial On-line NOW!

Download VRML Tutorial as pdf flat file (481K).


  Graduated VRML2 Interface Examples:

 
  DESCRIPTION   Original VRML file Previous wrl + Added Interface Previous files + Prototype Library
Simple standard street lamp; primitve interface showing parts. lamp.wrl anilamp.wrl
clikMe.jpg
protoanilamp.wrl
boxClick_p.wrl (not executable)
Simple working (timed) standard traffic light; semi-direct manipulation interface for lighting bulbs. traffic.wrl anitraffic.wrl protoanitraffic.wrl
ballClick_p.wrl (not executable)
Simple foggy example; use of DEF & USE to reduce size and a dial interface to change fog density. fogexp.wrl D&Ufogexp.wrl
anifogexp.wrl
Simple colour box example; use of a slider interface to change colour mix. cint.wrl anicint.wrl
Simple pyramid done as an indexed face set; revolving viewpoints. ifscpv.wrl anifscpf.wrl
clouds.jpg
Simple heads up display (HUD) where interface does not move if scene does (hud3 has a 3-D interface (sphere)); Done with prototypes (Iconify/Move interface). hud1.wrl
hud2.wrl
hud3.wrl
wheel.png
paneltest.wrl
frontpanel.wrl (not executable)
The need for HUD when viewpoints change the scene perspective: SUN/Earth solar system. anisolarSys.wrl
sunspot.jpg
moonscape.jpg
clouds.jpg


  VRML Lecture Examples -- Best viewed with Windows Safari(V4) and Cortona Plug-in (as in ITC-237)

  defusex
  rgbcones
  rowsfere
  cubeshr
  ofaxcone
  routfig
  tchsrfig
  toglfig
  TextEx
  threeCones
 



DOWNLOADs Section

Tutorial Materials:
  1. Tutorial #1 --
    1. VB.net: Introduction. (*.exe--4.7M)
    2. VB.net: Forms, Properties and Events. (*.exe--6.9M)
  2. Tutorial #2 --
    1. VB.net: Solution Explorer Tree and moving files. (*.exe--3.8M)
    2. VB.net: Visual & non-visual controls and the program class. (*.exe--6.3M)
  3. Tutorial #3 --
    1. VB.net: Moving solution structure from temp.space to permanent space. (*.exe--5.43M)
  4. Tutorial #4 --
    1. VB.net: Menu generation, multiple form programs & object orientation. (*.exe--7.51M)
  5. Tutorial #5 --
    1. VB.net: Overloading methods and operators in OOPS. (*.exe--1.72M)
    2. VB.net: Exception handling with "Try ... End Try" and "Catch" blocks. (*.exe--3.63M)
    3. VB.net: Merging menus under MDI (Parent/Child). (*.exe--5.67M)
  6. Tutorial #6 --
    1. VB.net: MDI -- multiple document interfaces. (*.exe--12.96M)
    2. VB.net: MDI -- power point pdf. (*.pdf--483K)
    3. VB.net: MDI -- coded example. (*.zip--69K)
  7. Tutorial #7 --
    1. WWW: JavaScript (*.exe--17.6M)
  8. Tutorial #8 --
    1. WWW: MS Script debugger. (*.exe--5.15M)
    2. WWW: Mozilla Script debigger / Venkman. (*.exe--3.84M)
    3. WWW: VB Script. (*.exe--7.05M)
  9. Tutorial #9 --
    1. WWW: ASP.net. (*.exe--6.39M)
    2. WWW: IIS & *.aspx Security Issues. (*.exe--9.05M)
  10. Tutorial #10 --
  11. Tutorial #11 --
New (or changed) Lecture Materials:

Recommended Client Applications:

 
  • Download Windows Safari V4 Browser (5.8M) as a self extractor installation file: good for VRML debugging in combination with Cortona Plug-in.
  • Download VRML Plug-in Client from ParallelGraphics (0.67M) as a zip file, good for debugging as provides line number where VRML error occurs.
  • Download an unregistered VRML editor called VRMLPad from parallelGraphics. Gives thumbnail previews, syntax checker, and context sensitive help for VRML2, But has VRML size limitations and time limitations until registered.
  • Download Crimson ASCII Editor which has coloured keywords and comments for VRML and is provided as freeware.
  • Others:
    • Microsoft Internet Explorer Version 8 -- Data Execution Prevention is a pain as it is in VISTA (remember CANCEL or ALLOW?) so forget about it.
    • Microsoft Internet Explorer Version 7 is better (no DEP) but it will still block VRML client writes as it is convinced its a trap -- could not defeat it.
    • Safari may be less secure but VRML works OK -- in fact, use Crimson Editor to open file and Safari will display it as you save your edits with a browser refresh -- no locked files which is very handy.



  •