Ppt lesson 01


Published on

  • 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

Ppt lesson 01

  1. 1. Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic
  2. 2. Objectives <ul><li>Explain the purpose of Microsoft Visual Basic. </li></ul><ul><li>Start Visual Studio 2005. </li></ul><ul><li>Open an existing Visual Basic project. </li></ul><ul><li>Explain the purpose of the components on the compiler screen. </li></ul>
  3. 3. Objectives (cont.) <ul><li>Run a Visual Basic program. </li></ul><ul><li>Position a form in a Visual Basic program. </li></ul><ul><li>Exit Visual Studio 2005. </li></ul>
  4. 4. Introduction to Microsoft Visual Studio 2005 <ul><li>Microsoft Visual Studio 2005 </li></ul><ul><ul><li>Software development tool </li></ul></ul><ul><ul><li>Allows you to use a variety of programming languages </li></ul></ul><ul><li>Combines graphical interface and programming code </li></ul><ul><ul><li>Makes program development as rapid as possible </li></ul></ul>
  5. 5. Starting Visual Studio 2005 <ul><li>Visual Studio 2005 can be started from </li></ul><ul><ul><li>A shortcut on the desktop </li></ul></ul><ul><ul><li>The Start button and All Programs menu </li></ul></ul><ul><li>Integrated Development Environment (IDE) </li></ul><ul><ul><li>Program that includes tools for creating, testing, and running computer programs </li></ul></ul>
  6. 6. Starting Visual Studio 2005 (cont.)
  7. 7. Opening an Existing Visual Basic Project <ul><li>Visual Studio 2005 stores programs in a group of files called a project. </li></ul><ul><li>The main project file has a VBPROJ extension. </li></ul><ul><li>The SLN file is the solution file. </li></ul>
  8. 8. Opening an Existing Visual Basic Project (cont.) <ul><li>Opening an existing Visual Basic project </li></ul><ul><ul><li>Click the Open Project button. </li></ul></ul><ul><ul><li>Open the SLN file </li></ul></ul><ul><ul><ul><li>That corresponds with the project you wish to open </li></ul></ul></ul>
  9. 9. Opening an Existing Visual Basic Project (cont.)
  10. 10. Components of the Compiler
  11. 11. Menus and Toolbars <ul><li>Visual Studio 2005 menu bar </li></ul><ul><ul><li>Contains some menus found in other Windows programs </li></ul></ul><ul><ul><ul><li>Contains some that are unique to this programming environment </li></ul></ul></ul><ul><ul><li>More than one toolbar available </li></ul></ul><ul><ul><ul><li>The Standard toolbar appears by default. </li></ul></ul></ul>
  12. 12. Menus and Toolbars (cont.)
  13. 13. Menus and Toolbars (cont.)
  14. 14. The Solution Explorer <ul><li>Solution Explorer </li></ul><ul><ul><li>Allows you to see the forms and files that make up your program </li></ul></ul><ul><li>Use the Solution Explorer </li></ul><ul><ul><li>To access the forms on which you want to work </li></ul></ul>
  15. 15. The Solution Explorer (cont.)
  16. 16. The Solution Explorer (cont.)
  17. 17. The Solution Explorer (cont.)
  18. 18. The Properties Window <ul><li>Objects </li></ul><ul><ul><li>Pieces that make up a Visual Basic program </li></ul></ul><ul><li>Each object has characteristics that can be customized. </li></ul><ul><ul><li>Called properties </li></ul></ul><ul><li>To see the properties of an object </li></ul><ul><ul><li>Use the Properties window </li></ul></ul>
  19. 19. The Properties Window (cont.)
  20. 20. The Properties Window (cont.)
  21. 21. The Toolbox <ul><li>The Toolbox </li></ul><ul><ul><li>Allows you to add objects to forms </li></ul></ul><ul><ul><li>Has tools for creating objects </li></ul></ul><ul><ul><ul><li>Command buttons </li></ul></ul></ul><ul><ul><ul><li>Text boxes </li></ul></ul></ul><ul><ul><ul><li>Check boxes </li></ul></ul></ul><ul><ul><ul><li>Option buttons </li></ul></ul></ul><ul><ul><ul><li>Picture boxes </li></ul></ul></ul><ul><ul><ul><li>Scroll bars </li></ul></ul></ul>
  22. 22. The Toolbox (cont.)
  23. 23. Running a Visual Basic Program <ul><li>To run a Visual Basic program </li></ul><ul><ul><li>Click the Start Debugging button. </li></ul></ul><ul><ul><ul><li>Found on the Standard toolbar </li></ul></ul></ul><ul><li>Debug version </li></ul><ul><ul><li>Can be stopped and examined in the IDE </li></ul></ul>
  24. 24. Running a Visual Basic Program (cont.)
  25. 25. Exiting Visual Studio <ul><li>Exiting Visual Basic </li></ul><ul><ul><li>Requires that you close Visual Studio 2005 </li></ul></ul><ul><li>Exit Visual Studio </li></ul><ul><ul><li>Choose Exit from the File menu. </li></ul></ul><ul><ul><li>Click the Close box at the right side of the Visual Studio title bar. </li></ul></ul>
  26. 26. Summary <ul><li>Microsoft Visual Studio 2005 is a tool that allows you to create Windows programs. Visual Basic is a language you can use in Visual Studio 2005 that allows you to easily create complex programs. </li></ul><ul><li>Visual Studio 2005 can be started from a shortcut in the All Programs (or Programs) menu or from the desktop. </li></ul>
  27. 27. Summary (cont.) <ul><li>A Visual Studio 2005 project is made up of several files. Information about a project is stored in a file with a VBPROJ extension. A collection of projects is called a solution. Information about a solution is stored in a file with an SLN extension. To open a Visual Studio 2005 project, you simply have to open the SLN file. </li></ul>
  28. 28. Summary (cont.) <ul><li>Visual Basic has some menu items found in other Windows programs and some menu items that are unique to Visual Studio 2005. </li></ul><ul><li>The Standard toolbar appears by default and contains buttons for frequently used Visual Studio 2005 commands. </li></ul>
  29. 29. Summary (cont.) <ul><li>The Solution Explorer allows you to see and open the forms and other files that make up a project. </li></ul><ul><li>The Properties window lets you view the characteristics, or properties, of the objects that make up a Visual Basic program. The Properties window also allows you to make changes to those properties. </li></ul>
  30. 30. Summary (cont.) <ul><li>The toolbox holds the tools that allow you to add objects, such as command buttons, to a form. </li></ul><ul><li>To run a Visual Basic program,click the Start Debugging button from the Standard toolbar. </li></ul>
  31. 31. Summary (cont.) <ul><li>Exit Microsoft Visual Studio by choosing Exit from the File menu or by clicking the Close box on the Microsoft Visual Studio title bar. </li></ul>