276x Filetype PDF File size 2.39 MB Source: lechaamwe.weebly.com
Visual Basic 2010 Tutorial Table of Contents Lesson 1- Introduction .................................................................................................................... 2 Lesson 2-Working with Controls ..................................................................................................... 5 Lesson 3-Working with Control Properties ..................................................................................... 8 Lesson 4 -Object Oriented Programming ..................................................................................... 11 Lesson 5-Writing the Code ............................................................................................................ 14 Lesson 6- Managing Data .............................................................................................................. 18 Lesson 7- Mathematical Operations ............................................................................................. 22 Lesson 8- String Manipulation ...................................................................................................... 24 Lesson 9- Using If….Then….Else .................................................................................................... 28 Lesson 10- Using Select Case ........................................................................................................ 32 Lesson 11- Looping........................................................................................................................ 35 Lesson 12- Functions Part 1 .......................................................................................................... 37 Lesson 13- Function Part II ............................................................................................................ 41 Lesson 14- Functions Part III- Math Functions.............................................................................. 45 Lesson 15 – Functions Part IV- Formatting Functions .................................................................. 47 Lesson 16 – Functions Part V- Formatting Date and Time ........................................................... 50 Lesson 17 – Using Check Box ........................................................................................................ 53 Lesson 18 – Using Radio Button.................................................................................................... 57 Lesson 19 – Creating A Simple Web Browser ............................................................................... 59 Lesson 20 – Errors Handling .......................................................................................................... 61 Lesson 21- Managing Graphics 1-Basic Concepts ......................................................................... 65 Lesson 22 – Managing Graphics -Drawing Rectangle ................................................................... 67 Lesson 23 – Managing Graphics -Drawing Ellipse and Circle ........................................................ 69 Lesson 24 – Managing Graphics -Drawing Text ............................................................................ 72 Lesson 25 – Managing Graphics -Drawing Polygon and Pie ......................................................... 75 Lesson 26 – Managing Graphics-Filling Shapes with Color ........................................................... 78 Lesson 27 – Using Timer ............................................................................................................... 81 Lesson 28 – Creating Animation ................................................................................................... 85 Lesson 29 Working with Databases Part 1.................................................................................... 88 Lesson 30- Working with Databases Part 2 .................................................................................. 90 Lesson 31: Working with Databases Part 3 .................................................................................. 93 Lesson 1- Introduction Visual Basic 2010 is the latest version of Visual Basic launched by Microsoft in 2010. Visual Basic 2010 is a full fledged Object-Oriented Programming (OOP) Language, so it has caught up with other OOP languages such as C++, Java,C# and others. However, you don’t have to know OOP to learn VB2010. Visual Basic 2010 Express Edition is available free for download from the Microsoft site. Go to the link http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-basic-express The Integrated Development Environment when you launch VB2010 Express is shown in the diagram below. The IDE Start Page consists of a few sections, namely: The New Project/Open Project section. The Recent Projects section that shows a list of projects that have been created by you recently. The Getting Started Pane- It provides some helpful tips to quickly develop your applications. The Latest News section- It provides latest online news about Visual Basic 2010 Express. It will announce new releases and updates The Properties section-let you defines the properties of each control To start creating your first application, you need to click on New Project. The following VB2010 New Project dialog box will appear. The dialog box offers you five types of projects that you can create. As we are going to learn to create windows Applications, we will select Windows Forms Application. At the bottom of this dialog box, you can change the default project name WindowsApplication1 to some other name you like, for exampe, myFirstProgram. After you have renamed the project, click OK to continue. The following IDE Windows will appear, it is almost similar to Visual Basic 6. It consists of an empty form, the toolbox tab and the properties. The layout is slightly different from vb2008 as the Toolbox is not shown until you click on the Toolbox tab. When you click on the Toolbox tab, the common controls Toolbox will appear. Now drag the button control into the form, and change its default Text Button1 to OK in the properties window, the word OK will appear on the button in the form, as shown below: Now click on the OK button and the code window appears. Enter the code as follows:
no reviews yet
Please Login to review.