|
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.
|
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).
-
Download TV example zip file (Zenith(fixed) -- 97Kb).
-
Download TV example zip file (VDUhop(movie) -- 0.275Mb).
-
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:
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:
-
Tutorial #1 --
-
VB.net: Introduction. (*.exe--4.7M)
-
VB.net: Forms, Properties and Events. (*.exe--6.9M)
-
Tutorial #2 --
-
VB.net: Solution Explorer Tree and moving files. (*.exe--3.8M)
-
VB.net: Visual & non-visual controls and the program class. (*.exe--6.3M)
-
Tutorial #3 --
-
VB.net: Moving solution structure from temp.space to permanent space. (*.exe--5.43M)
-
Tutorial #4 --
-
VB.net: Menu generation, multiple form programs & object orientation. (*.exe--7.51M)
-
Tutorial #5 --
-
VB.net: Overloading methods and operators in OOPS. (*.exe--1.72M)
-
VB.net: Exception handling with "Try ... End Try" and "Catch" blocks. (*.exe--3.63M)
-
VB.net: Merging menus under MDI (Parent/Child). (*.exe--5.67M)
-
Tutorial #6 --
-
VB.net: MDI -- multiple document interfaces. (*.exe--12.96M)
-
VB.net: MDI -- power point pdf. (*.pdf--483K)
-
VB.net: MDI -- coded example. (*.zip--69K)
-
Tutorial #7 --
-
WWW: JavaScript (*.exe--17.6M)
-
Tutorial #8 --
-
WWW: MS Script debugger. (*.exe--5.15M)
-
WWW: Mozilla Script debigger / Venkman. (*.exe--3.84M)
-
WWW: VB Script. (*.exe--7.05M)
-
Tutorial #9 --
-
WWW: ASP.net. (*.exe--6.39M)
-
WWW: IIS & *.aspx Security Issues. (*.exe--9.05M)
-
Tutorial #10 --
-
Tutorial #11 --
New (or changed) Lecture Materials:
-
Get New Lectures (if any) here:
-
Get Appendix files (if any) here:
Get Decision Ladder picture enlargements here:
Videos screened in class can be viewed here:
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.
|