Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Visual Basic. NET,. NET Framework and Visual Studio

Similar presentations


Presentation on theme: "Introduction to Visual Basic. NET,. NET Framework and Visual Studio"— Presentation transcript:

1 Introduction to Visual Basic. NET,. NET Framework and Visual Studio
Introduction to Visual Basic .NET, .NET Framework and Visual Studio .NET Outline 1.7 Introduction to Visual Basic .NET 1.10 Structured Programming Object Oriented Programming 1.16 Introduction to Microsoft .NET 1.17 Introduction to .NET Framework 2.1 Introduction to Visual Studio .NET 2.6 Simple Program: Displaying Text and an Image

2 1.7 Introduction to Visual Basic .NET
History of Visual Basic Evolved from BASIC Beginner’s All-Purpose Symbolic Instruction Code Introduction to programming for novices Introduced by Microsoft (1991) Made programming for Windows much easier IDE facilitates quicker programming Rapid Application Development Provided many extra features Event handling Graphical user interfaces Object-oriented programming

3 1.7 Introduction to Visual Basic .NET (II)
.NET Strategy Motivated by popularity of electronic devices Provide interaction between wide variety of devices Web-based applications distributed to different devices Cell phones Personal Digital Assistants Personal computers Allow communication between programs of disparate languages

4 1.7 Introduction to Visual Basic .NET (III)
Enhanced object orientation Powerful library of components Application development made even quicker Enhanced language interoperability Interaction between different languages Old software compatible with Visual Basic .NET programs Interaction over the Internet Simple Object Access Protocol (SOAP) Extensible Markup Language (XML) Promotes use of Web services

5 1.10 Structured Programming
Early Software Development Complex and costly for businesses (1960s) Costs exceeded budgets Final products unreliable Research led to structured programming Disciplined approach to programming Programs clear and easy to modify Several languages resulted from research C, Pascal, Ada, ... Avoid GOTO's

6 1.11 Object Oriented Programming
Packaging scheme for creating software units Units are objects Any noun can be represented as an object Date object, time object, car object Have properties Size, color, weight Perform actions Moving, sleeping, drawing Defined in classes Specify general format Provide specific attributes and behaviors

7 1.11 Object Oriented Programming (II)
Advantages over structured programming More natural process Results in better productivity Classes provide reusability Microsoft Foundation Classes (MFC) Easier to maintain Programs more understandable Focus on behaviors and interactions Less attention to details

8 1.16 Introduction to Microsoft .NET
.NET initiative Introduced by Microsoft (June 2000) Vision for embracing the Internet in software development Independence from specific language or platform Applications developed in any .NET compatible language Visual Basic .NET, Visual C++ .NET, C# and more Programmers can contribute to applications using the language in which they are most competent Architecture capable of existing on multiple platforms New program development process Provides increased productivity Additional information available at Microsoft Web site

9 1.17 .NET Framework .NET Framework Heart of .NET strategy
Manages and executes applications and Web services Provides security, memory management and other programming capabilities Includes Framework class library (FCL) Pre-packaged classes ready for reuse Used by any .NET language Details contained in Common Language Specification (CLS) Submitted to European Computer Manufacturers Association to make the framework easily converted to other platforms Executes programs by Common Language Runtime (CLR)

10 .NET Framework Class Libraries Compliant Languages
Fonte: Manuel Costa, Microsoft Portugal

11 Common Language Runtime
Central part of framework Executes Visual Basic .NET programs Compilation process Two compilations take place Programs compiled to Microsoft Intermediate Language (MSIL) Defines instructions for CLR MSIL code translated into machine code Machine code for a particular platform

12 Common Language Runtime (II)
Why two compilations? Platform independence .NET Framework can be installed on different platforms Execute .NET programs without any modifications to code Language independence .NET programs not tied to particular language Programs may consist of several .NET-compliant languages Old and new components can be integrated Other advantages of CLR Execution-management features Manages memory, security and other features Relieves programmer of many responsibilities More concentration on program logic

13 2.1 Visual Studio .NET Visual Studio .NET Visual programming
Microsoft’s Integrated Development Environment (IDE) Used to create, run and debug programs (applications) Visual programming Dragging and dropping predefined building blocks into place to create a simple Visual Basic program

14 Fig. 2.1 Start Page in Visual Studio .NET.
Location bar Fig. 2.1 Start Page in Visual Studio .NET.

15 Fig. 2.2 New Project dialog.

16 solution explorer properties window Fig. 2.3 Design view of Visual Studio .NET IDE.

17

18 2.6 Simple Program: Displaying Text and an Image
Fig Simple program executing.

19 Fig. 2.16 Creating a new Windows Application.

20 Fig. 2.17 Setting the project location in the Project Location dialog.

21 Fig. 2.18 Setting the form’s Text property.

22 Fig. 2.19 Form with sizing handles.

23 Fig. 2.20 Changing the form’s BackColor property.

24 Fig. 2.21 Adding a label to the form.

25 Fig. 2.22 Label in position with its Text property set.

26 Fig. 2.23 Properties window displaying the label’s properties.

27 Fig. 2.24 Font window for selecting fonts, styles and sizes.

28 Fig. 2.25 Centering the label’s text.

29 Fig. 2.26 Inserting and aligning the picture box.

30 Fig. 2.27 Image property of the picture box.

31 Fig. 2.28 Selecting an image for the picture box.

32 Fig. 2.29 Picture box displaying an image.

33 Fig. 2.30 IDE in run mode, with the running application in the foreground.


Download ppt "Introduction to Visual Basic. NET,. NET Framework and Visual Studio"

Similar presentations


Ads by Google