Java or .NET?:

  1. .NET was made public in June 2000.
    1. Minimum System Requirements to Install and Use Visual Studio .NET

      The minimum requirements are:
      RAM: 256 MB (Recommended)
      Processor: Pentium II 450 MHz
      Operating System: Windows 2000 or Windows XP
      Hard Disk Space: 3.5 GB (Includes 500 MB free space on disk)

    2. Visual Basic .NET 2003 with .NET Framework 1.1
      Representation of the .NET Framework
    3. Component Types in Business Application: 
  2. Syntax and Semantic:
    1. MSDN: for detail support and resources
    2. Runtime diagnostics: Event Logging, Performance Counters and Tracing.
      1. Public Class Test
        ----- Variables
        End Class
      2. Assemblies are made of two parts: manifest, contains information about what is contained within the assembly and modules, internal files of IL code which are ready to run: CLR and the .NET framework
      3. Imports System.Console
      4. With Button1
      5. Scope: Block, Procedure, Class and Name Space
      6. Option Strict On
      7. Public Function Add(ByVal x1 as Integer, ByVal y1 as Integer)
      8. Sub Display()
      9. Select Case testexpression
            [Case expressionlist-n
                [statements-n]] . . .
            [Case Else elsestatements]
        End Select
      10. If condition Then
        Else If condition Then
        End If
      11. For index=start to end[Step step]
        [Exit For]
      12. While condition
        End While
      13. Do[{while | Until} condition]
        [Exit Do]
      14. CBool - use this function to convert to Bool data type
        CByte - use this function to convert to Byte data type
        CChar - use this function to convert to Char data type
        CDate - use this function to convert to Date type
        CDbl - use this function to convert to Double data type
        CDec - use this function to convert to Decimal data type
        CInt - use this function to convert to Integer data type
        CLng - use this function to convert to Long data type
        CObj - use this function to convert to Object type
        CShort - use this function to convert to Short data type
        CSng - use this function to convert to Single data type
        CString - use this function to convert to String data type
      15. File Extensions:
        1. .vbproj->A Visual Basic project
          Form1.vb->A form's code
          AssemblyInfo.VB->Information about an assembly, includes version information
          .vbproj.user->Stores project user options
          .sln->Solution file which stores solution's configuration
          .suo-> Stores Solution user options
          Form1.resx.NET->XML based resource template
          bin directory->Directory for binary executables
          obj directory->Directory for debugging binaries
      16. Enum 
      17. Try....Catch.....Finally
      18. Arrays are zero based and can specify up to 32 dimensions
      19. Dim sport(5) As String: 6 elements
      20. ReDim Test(25) as Integer: Re-dimension Array elements.
      21. String class : Unicode characters
      22. System.Math : Math Functions
      23. One IDE for all .NET Projects: The My Profile settings: built-in browser
      24. Form class: System.Windows.Forms.Form.
      25. F4: Control Properties
  3. .NET Framework version 1.1
    1. Each assembly can have only one entry point (that is, DllMain, WinMain, or Main).
  4.  .NET  is a new layer of software that sits above the Windows operating system.

  5. .NET provides a comprehensive framework of language-neutral class libraries.

  6. .NET understands only one language, Microsoft Intermediate Language (IL).

  7. .NET Framework can integrate with any other code.

5. .NET applications, running under the scheme shown in figure 1.1, are referred to as managed applications.

  1. single solution, containing multiple projects, in which the individual  projects are written in separate languages.

  2. Windows Application: Forms and Controls

  3. Class Library: allows  to create classes

  4. Windows Control Library: to create new controls to be used in Windows applications.

  5. Web Application: ASP.NET

  6. Web Service:

  7. Web Control Library:

  8. Console Application:

  9. Windows Service:

6. non-.NET Windows applications are known as unmanaged applications.

Objects Browser & Syntax Reference Card:

  1. File Class: Static/Share Object
    1. Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
    2. System.IO.File : NotInheritable Public Class File
    3. Namespace: System.IO
    4. Assembly: Mscorlib (in Mscorlib.dll)
    5. Members:
      1. File.Exists Method: Determines whether the specified file exists.
        1. File.Exists(path): Returns True / False value.
      2. File.Copy(path, path2) : Copy File from Source to Destination.
      3. sw = File.AppendText(path) ; sw.WriteLine("This")
      4. File.Delete: File.Delete(path2)
      5. File.OpenText(txtFileName.Text)
      6. .ReadLine()
      7. .ReadToEnd()
      8. .Close()
      9. .Read()
  2. Directory Class: 
    1. Exposes static methods for creating, moving, and enumerating through directories and subdirectories
    2. System.IO.Directory
    3. Members:
      1. Directory.Exists(path): True / False returned.
      2. Directory.CreateDirectory(path) : Create New Directory
      3. Directory.Move(path, target) : Move the directory.
      4. Directory.GetFiles(strPath): No of files in Directory.
  3. Directory.GetLogicalDrives :
    1. Returns an array ' of strings, each representing one of the ' installed drives
  4. TreeView control: tvwRoot.Nodes.Add(strDrive)
  5. SaveFileDialog object:
  6. OpenFileDialog object:
    1. CheckFileExists=True
    2. DefaultExt = "txt"
    3. InitialDirectory = "C:\"
    4. FileName
  8. SQL_CONNECTION_STRING As String = "Server=localhost;" & "DataBase=northwind;" & "Integrated Security=SSPI"
  9. DataSet
  10. DataView
  11. DataTable
  12. SqlDataAdaptor

 2. Visual Basic® .NET version 7.0

Common Language Runtime

Managed Environment:

A managed environment is one in which the environment provides common services automatically. Examples of the types of services a managed environment provides are garbage collection and security.

.NET Framework Class Library:

  • The System.Collections namespace : provides sorted lists, hash tables, and other ways to group data. 

  • The System.IO namespace : provides file I/O, streams, and so on. 

  • The System.NET namespace provides Transmission Control Protocol/Internet Protocol (TCP/IP) and sockets support.

ADO.NET: Data and XML:

  • ADO.NET is the next generation of ActiveX® Data Object (ADO) technology.

  • ADO.NET provides improved support for the disconnected programming model. It also provides rich XML support.

System.Data Namespace

  •  consists of classes that constitute the ADO.NET object model. 

  • At a high level, the ADO.NET object model is divided into two layers: 

  •  connected layer 

  •  disconnected layer.

  •  includes the DataSet class, which represents multiple tables and their relations. These data sets are completely self-contained data structures that can be populated from a variety of data sources. 

    • One data source could be XML

    •  another could be OLE DB

    •  third data source could be the direct adapter for SQL Server.

System.Xml Namespace:

  • XML parser and a writer

  • Transformations are provided by the System.Xml.Xsl namespace and the implementation of XPath that allows data graph navigation in XML.

  • The System.XML.Serialization namespace provides the entire core infrastructure for Web Services, including features such as moving back and forth between objects and an XML representation.

ASP.NET: Web Forms and Services:

System.Web Namespace

In the System.Web namespace, there are services such as caching, security, configuration, and others that are shared between Web Services and Web user interface (UI).

System.Web.Services Namespace

The System.Web.Services namespace handles Web Service requirements such as transportation protocols and service discovery.

System.Web.UI Namespace

The System.Web.UI namespace provides two classes of controls: HTML controls and Web controls. 

  • The HTMLControls provide direct mapping of HTML tags, such as <INPUT>. 

  •  WebControls that are richer and allow you to structure controls with templates (for example, a grid control).

User Interface:

System.Windows.Forms Namespace:

Visual Basic .NET Projects:

Project Structures:


Project References:

  • set project references to other .NET assemblies, existing COM components, or other .NET projects within the same .NET solution.

  • Select the current project in Solution Explorer. On the Project menu, click Add Reference.


Creating Namespaces:

Namespace Customers

'Create classes, modules, and interfaces

'Related to Customer information

End Namespace

Importing Namespaces:

Setting Project Properties:

Development Environment Features:

Compilation Options:

Data Types:

Value-Type and Reference-Type Variables:

New Data Types:

Changes to Existing Data Types:

CType to Convert Data Types:

Declaring and Initializing Variables and Arrays:

Declaring Multiple Variables:


System.Exception Class:

Filtering Exceptions:

Converting Use Cases into Classes:

Object-Oriented Programming Concepts:



Component Diagrams:

This UML diagram allows you to model physical aspects of a system, such as the source code, executables, files, and database tables. You can use interfaces, components, packages, and dependencies to model this view.

Deployment Diagrams:

This UML diagram gives a view of the physical nodes (computational devices) on which the system executes. This type of diagram is especially useful when the system will involve more than one computer, such as in an enterprise solution.

Class Diagrams:

Access Modifiers:

Declaring Methods:

Declaring Properties:

Using Attributes:

Overloading Methods:

Using Constructors:

Using Destructors:

Instantiating and Initializing Objects:

Defining Interfaces:

Windows Forms Class Hierarchy:

System.Drawing namespace:

Creating Menus:

Providing User Help:

Web Applications:


Response and Request Objects:

Requesting Information from the Client Browser:

Sending Information to the Client Browser:

Maintaining Client-Side State:

Using Cookies for Enhanced Client-Side State:

Response.Cookies("User_FullName").Value = strFullName

Response.Cookies("User_FullName").Expires = _



If Not (Request.Cookies("User_FullName") Is Nothing) Then

strFullName = Request.Cookies("User_FullName").Value

End If

Maintaining Server-Side State:

A Web farm is an application that is hosted across multiple computers

A Web garden is an application that is hosted on a single computer with multiple processors.


5. XML Web services

Web Service Architecture

6. Internet Information Services (IIS)

7. Mobile Internet Toolkit

8. Visual C#

9. Visual C++



Click to go to  Home Page