MELJUN CORTES Visual Basic 2010 very good lecture


Published on

MELJUN CORTES Visual Basic 2010 very good lecture

Published in: Technology, News & Politics
  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

MELJUN CORTES Visual Basic 2010 very good lecture

  2. 2. Visual Basic Visual Basic (VB) is a third- generation event-driven programming language. It is also an integrated development environment (IDE) from Microsoft for its COM programming model. MELJUN CORTES
  3. 3. Visual Basic Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects. MELJUN CORTES
  4. 4. Visual Basic Scripting languages such as Visual Basic for Applications (VBA) and VBScript are syntactically similar to Visual Basic, but perform differently. MELJUN CORTES
  5. 5. Visual Basic In 1988, Alan Cooper created a visual programming language (code-named “Ruby”) that allowed Windows users to build “Finder”-like shells. He called it “a shell construction set.” After demonstrating Ruby to Bill Gates, Microsoft purchased it. MELJUN CORTES
  6. 6. Visual Basic Visual Basic, user experience, interaction design, personas, Goal-Directed design, About Face, The Inmates Are Running The Asylum, VBX. MELJUN CORTES
  7. 7. Visual Basic At the time, Gates commented that the innovation would have a “profound effect” on their entire product line. Microsoft decided not to release the product as a shell for users, but rather to transform it into a professional development tool by marrying it to their QuickBASIC programming language. They called the product Visual Basic. MELJUN CORTES
  9. 9. Visual Basic.NET Visual Basic .NET is an object-oriented computer programming language that can be viewed as an evolution of the classic Visual Basic (VB) which is implemented on the .NET Framework. MELJUN CORTES
  10. 10. Visual Basic.NET VB.Net is also a Microsoft Common Language Infrastructure language created by Microsoft. Visual Basic .NET was designed, as part of the company's .NET product group, to make Web services applications easier to develop. MELJUN CORTES
  11. 11. Visual Basic.NET According to Microsoft, VB .NET was reengineered, rather than released as VB 6.0 with added features, to facilitate making fundamental changes to the language. MELJUN CORTES
  12. 12. Visual Basic.NET VB.NET is the first fully object-oriented programming (OOP) version of Visual Basic, and as such, supports OOP concepts such as abstraction, inheritance, polymorphism. MELJUN CORTES
  14. 14. Visual Basic 1.0 Visual Basic 1.0 was introduced in 1991. Visual Basic 1.0 (Windows) was released 1991 of May. Visual Basic 1.0 (DOS) was released in September 1992. The interface used a Text user interface, using extended ASCII characters to simulate the appearance of a GUI. MELJUN CORTES
  15. 15. Visual Basic 1.0 MELJUN CORTES
  16. 16. Visual Basic 2.0 Visual Basic 2.0 was release in November 1992. The programming environment was easier to user, and its speed was improved. Notably, forms became instant objects. MELJUN CORTES
  17. 17. Visual Basic 3.0 Visual Basic 3.0 was release in the summer of 1993 and came in Standard and Professional versions. VB3 included version 1.1 of the Microsoft Jet Database Engine that could read and write Jet (or Access) 1.x databases. MELJUN CORTES
  18. 18. Visual Basic 4.0 Visual Basic 4.0 was released in August 1995. VB 4.0 was the first version that could create 32-bit as well as 16-bit Windows programs. It also introduced the ability to write non-GUI classes in Visual Basic. MELJUN CORTES
  19. 19. Visual Basic 5.0 Visual Basic 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows. It also introduced the ability to create custom user controls, as well as the ability to compile to native Windows executable code, speeding up calculation-intensive code execution. MELJUN CORTES
  20. 20. Visual Basic 5.0 It was also used as an introductory form of Visual Basic: a regular .exe project could be created and run in the IDE, but not compiled. MELJUN CORTES
  21. 21. Visual Basic 6.0 Visual Basic 6.0 (Mid 1998) improved in number of areas including the ability to create web-based applications. MELJUN CORTES
  22. 22. Visual Basic 6.0 MELJUN CORTES
  23. 23. Visual Basic 7 Visual Basic 7 sometimes referred to as VB7 or Visual Basic.Net, was released in February 2002. This product was conceived as a part of Microsoft.NET software initiative, designed to produce XML-based applications for the Microsoft Internet environment. MELJUN CORTES
  24. 24. Visual Basic 7 (1.1) Visual Basic .NET 2003 was released with version 1.1 of the .NET Framework. New features included support for the .NET Compact Framework and a better VB upgrade wizard. Improvements were also made to the performance and reliability of the .NET IDE (particularly the background compiler) and runtime. MELJUN CORTES
  25. 25. Visual Basic 7 (1.1)  In addition, Visual Basic .NET 2003 was available in the Visual Studio.NET Academic Edition (VS03AE). VS03AE is distributed to a certain number of scholars from each country without cost. MELJUN CORTES
  26. 26. Visual Basic 7.0 MELJUN CORTES
  27. 27. Visual Basic 8.0 On November 2005, Microsoft released Visual Studio 2005, which included Visual Basic 8 and the .Net Framework version 2. Visual Basic 2005 is the name used to refer to the Visual Basic .NET, Microsoft having decided to drop the .NET portion of the title. MELJUN CORTES
  28. 28. Visual Basic 8.0 MELJUN CORTES
  29. 29. Visual Basic 8.0 For this release, Microsoft added many features, including: Edit and Continue The My pseudo-namespace, which provides: easy access to certain areas of the .NET Framework that otherwise require significant code to access  dynamically-generated classes (notably My.Forms)  Improvements to the VB-to-VB.NET converter The above functions (particularly My) are intended to reinforce Visual Basic .NET's focus as a rapid application development platform and further differentiate it from C#. MELJUN CORTES
  30. 30. Visual Basic 9.0 Visual Basic 9.0 was released together with the Microsoft .NET Framework 3.5 on 19 November 2007. For this release, Microsoft added many features, including:  A true conditional operator, "IIf(condition as boolean, truepart, falsepart)", to replace the "IIf" function.  Anonymous types  Support for LINQ  Lambda expressions  XML Literals  Type Inference  Extension methods MELJUN CORTES
  32. 32. Changes in VB Language All data are objects, based on the class: System.Object. E.g. class supports Windows forms: System.Windows.Forms.Form. The built-in VB functionality is encapsulated in a namespace called System. E.g Collection has be replaced by System.Collections. Old control are gone, and new ones have appeared. MELJUN CORTES
  33. 33. Changes in VB Language Many keywords are renamed or gone, while some new added. E.g. Gosub removed Strict data typing is now enforced Variable must be declared before used by default. Cannot assign one data type to another, but can use Ctype to convert between types. The same as in VC++ and C#. Structured exception handling: Try…Catch…Finally. MELJUN CORTES
  34. 34. Changes in VB Languages When calling procedures, must use parentheses. Parameters are by default passed by value, instead of by reference. Supports constructors and destructors for use when initializing an object of a class. If…Then statements are now short-circuited. MELJUN CORTES
  35. 35. Changes in VB Language A number of new compound operators E.g. x+=2 The And, Or, Not and Xor operators have changed from bitwise to boolean operators. Meanwhile, the bitwise versions are BitAnd, BitOr, BitNot, and BitXor. No default property supported E.g. VB6: TextBox1=“Hello” VB.Net: TextBox1.Text=“Hello” MELJUN CORTES
  36. 36. Changes in VB Language Three new data types VB 6.0 Integer Type VB.NET Char: unsigned 16-bit Short: signed 16-bit 8 bit Byte Byte 16 bit Integer Short 32 bit Long Integer 64 bit Not Applicable Long Decimal: signed 96-bit (replaces Variant) MELJUN CORTES
  38. 38. Comments 'Single line only REM Single line only ''' <summary>XML comments</summary> ex. If messageBox = “Hello” Then This is a comment End If MELJUN CORTES
  39. 39. Class Declaration Public Class className … End Class ex. Public Class Employee … End Class MELJUN CORTES
  40. 40. Declaration of Variable Dim variableName As dataType ex. Dim messageContent As String Dim myNumber As Integer MELJUN CORTES
  41. 41. Conditional Statements If condition Then statement Else If condition2 Then statement2 Else statement3 End If ex. If messageContent = “Hello World” Then MessageBox.Show(“Hello World”) Else if messageContent = “Hello” Then MessageBox.Show(“Hello”) Else MessageBox.Show(“Hello World Hello”) End If MELJUN CORTES
  42. 42. Looping Statements Do While Do While condition statement Loop ex. Do While myNumber > 20 MessageBox.Show(myNumber) myNumber = myNumber + 1 Loop MELJUN CORTES
  43. 43. Looping Statements For For condition Statement Next ex. For myNumber = 10 To 20 MessageBox.Show(myNumber) Next MELJUN CORTES
  44. 44. Looping Statements Do Until Do Until condition statement Loop ex. Do Until myNumber = 20 MessageBox.Show(myNumber) myNumber = myNumber + 1 Loop MELJUN CORTES
  45. 45. Logical Operators AndAlso   OrElse   And   Or   Xor   Not ex. If myNumber = 10 And messageContent = “Hello World” Then … End If MELJUN CORTES
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.