Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.

Similar presentations


Presentation on theme: "Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It."— Presentation transcript:

1

2 Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It is not a stand-alone program but is included in the Microsoft Visual Studio suite of applications. It has a Object-Oriented programming that includes the creation and application of virtual blueprints called Classes and objects made from those classes. MS Visual Basic 2010 is designed around a built-in Drag and Drop interface. “runtime” is the underlying program code needed to display the form when program is running.

3 Visual Basic 2010 It is a programming language you can use to tell your computer how to do things, but the computer will understand it only if you explain things very clearly.

4 Visual Basic Environment TOOLBOXTOOLBOX Form Designer Explorer Properties Title Bar Menu Bar Toolbar

5 Title Bar – specifies the name of the program. You can change the default file name, WindowsApplication1, to a new name. Menu Bar – displays the Integrated Development (IDE) command from the list to instruct VB in performing a certain action. Toolbar – provides to quick access to commonly used commands in the programming environment of VB. Toolbox – contains Controls that enable you to add, design, and create in a form. Form Designer – specifies the main object in VB where you design your program in a form. Explorer – displays VB directory windows with specific files. Properties – specifies VB objects where you can edit or change the properties using the Properties Windows.

6 Basic Control Manipulation To manipulate controls, click Toolbox and drag into a form the control that you want to use. To delete, select the control that you want to delete, then press the Delete key. You can resize the control by dragging the double arrow on any of the anchor points in the control. ok

7 You can change the properties of the control using the Properties Window. Sample Text Properties of Command button from Button1 to OK are shown below. Windows Explorer displays all the forms and modules of the current project. A project is a collection of files used to build an application. Internal name File name

8 Short cut keys Close Window = F7 Form Designer = Shift + F7 Solution Explorer = Ctrl + Alt + L Properties Window = F4 Toolbox = Ctrl + Alt + X

9 Different Properties for VB Controls Use Boolean Value Property Boolean value property is answered by TRUE or FALSE settings. Open the VB program Select form control. In the properties Window, click MAXIMIZEBOX property, and click the drop down option to select FALSE setting. MAXIMIZEBOX In the Toolbar, Click the START DEBUGGING or press F5 to run the program. (The Maximized button is in gray scale, which means that it will no longer function.)

10

11 Use Predefined Value Property Predefined value property is answered by the corresponding value. Open the VB program Select form control. In the properties Window, click BORDERSTYLE property, and click the drop down option to select FIXEDSINGLE setting. In the Toolbar, Click the START DEBUGGING or press F5 to run the program. (The form cannot be resized since the double arrow in the mouse cursor is no longer available.)

12 Use String Value Property String value property is a text or caption. You can change the string value property in the Properties Window. Open the VB program Select form control. In the properties Window, click TEXT property, and change Form1 to MYFIRSTPROGRAM. In the Toolbar, Click the START DEBUGGING or press F5 to run the program. (The text of your form is now changed.)

13 Use Numerical Value Property Numerical value property is answered by text or caption. You can change the numerical value property in the Properties Window. Open the VB program Select form control. In the properties Window, click SIZE property, click the drop down for the Size and specify the Width and Height in pixels that you want to use. In the Toolbar, Click the START DEBUGGING or press F5 to run the program.

14


Download ppt "Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It."

Similar presentations


Ads by Google