• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Vb
 

Vb

on

  • 1,289 views

 

Statistics

Views

Total Views
1,289
Views on SlideShare
1,288
Embed Views
1

Actions

Likes
0
Downloads
7
Comments
0

1 Embed 1

https://qafit09-win.pd.local 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Vb Vb Presentation Transcript

    • VB.NET Introduction
    • What is .NET Framework
      • The Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems .
      • The .NET Framework is a key Microsoft offering and is intended to be used by most new applications created for the Windows platform.
      • The framework's Base Class Library provides a large range of features including user interface , data and data access , database connectivity , cryptography , web application development, numeric algorithms , and network communications .
    • Understanding the .NET Framework
      • . NET framework is a Windows Component that supports the building and running of windows applications and XML Web services . The purpose of the component is to provide the user with a consistent object oriented programming environment whether the code is stored locally or remotely.
      • The .NET framework has two major components-- The Common Runtime (CLR) and the Class Library
    • CLR (Common Language Runtime)
      • The Common Language Runtime (CLR) is a core component of Microsoft's .NET initiative.
      • The CLR runs a form of bytecode called the Common Intermediate Language (CIL, previously known as MSIL -- Microsoft Intermediate Language).
      • Developers using the CLR write code in a language such as C# or VB.NET . At compile time , a .NET compiler converts such code into CIL code. At runtime , the CLR's just-in-time compiler converts the CIL code into code native to the operating system.
    • Working of CLR
    • CLR Features
      • Memory Management (Memory management is the act of managing computer memory. In its simpler forms, this involves providing ways to allocate portions of memory to programs at their request, and freeing it for reuse when no longer needed. The management of main memory is critical to the computer system.
      • Virtual memory systems separate the memory addresses used by a process from actual physical addresses, allowing separation of processes and increasing the effectively available amount of RAM using disk swapping The quality of the virtual memory manager can have a big impact on overall system performance.)
      • Thread Management
      • Exception Handling
      • Garbage Collection
      • Security
      • Other system services.
      • CLR eliminates many common software issues like handling of object layout, references to objects and garbage clearance
      • It lends support to existing applications.
    • Namespaces
      • Namespaces
      • A namespace is a collection of different classes. All VB applications are developed using classes from the .NET System namespace. The namespace with all the built-in VB functionality is the System namespace. All other namespaces are based on this System namespace.
      • Some Namespaces and their use:
      • System : Includes essential classes and base classes for commonly used data types, events, exceptions and so on System.Collections : Includes classes and interfaces that define various collection of objects such as list, queues, hash tables, arrays, etc System.Data : Includes classes which lets us handle data from data sources System.Data.OleDb : Includes classes that support the OLEDB .NET provider System.Data.SqlClient : Includes classes that support the SQL Server .NET provider System.Diagnostics : Includes classes that allow to debug our application and to step through our code System.Drawing : Provides access to drawing methods
    • Namespaces
      • System.Globalization : Includes classes that specify culture-related information System.IO: Includes classes for data access with Files System.Net : Provides interface to protocols used on the internet System.Reflection : Includes classes and interfaces that return information about types, methods and fields System.Security : Includes classes to support the structure of common language runtime security system System.Threading : Includes classes and interfaces to support multithreaded applications System.Web : Includes classes and interfaces that support browser-server communication System.Web.Services : Includes classes that let us build and use Web Services System.Windows.Forms : Includes classes for creating Windows based forms System.XML: Includes classes for XML support
    • Working With VB.NET
      • In Visual Basic.Net there are 2 main applications we going to use.
      • Windows Application
      • Console Application
      • Windows Application
      • Windows Applications used for Design Purpose.
      • Console Application
      • Console Applications are command-line oriented applications that allow us to read characters from the console, write characters to the console and are executed in the DOS version. Console Applications are written in code and are supported by the System.Console namespace.
    • Working With VB.NET
      • Example For Console Applications
      • Module Module1 Sub Main() System.Console.Write("Welcome to Console Applications") End Sub End Module
      • Note the first line, we're creating a Visual Basic Module and Modules are designed to hold code. All the code which we write should be within the Module. Next line starts with Sub Main(), the entry point of the program. The third line indicates that we are using the Write method of the System.Console class to write to the console.
    • Working With VB.NET
      • Example For Windows Applications
      • Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)_ Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles Button1.Click
      • MsgBox("Welcome to Forms") End Sub End Class