This document provides information on working with Visual Basic (VB), a graphical user interface (GUI) programming language. It discusses how to start a VB project, the different components of the VB window like the form window and toolbox, and how to place controls on a form. It also provides details on common controls in VB like labels and textboxes, including their properties, events, and methods. The document uses examples to demonstrate how to create a simple VB application that displays a message on a form.
In this chaper we will learn how to change the BackColor property of an object
Understand Visual Basic 2010 code statement formatsand see how IntelliSense can be used to enter code statements.We will discuss the Visual Basic programming languge syntax and write coding statements. We will also see how to correct coding errors in Visual Basic 2010.
Correct errors in Visual Basic 2010 code. We will learn how to print code and how to prepare an Event Planning Document.
This document provides a tutorial on creating a graphical user interface (GUI) in Visual Basic Express to control a Phidget servo controller. It describes installing Visual Basic Express, creating the GUI with labels, a trackbar, and button, writing code to handle events like loading the form, trackbar movement, and Phidget attachment/detachment. The code initializes label texts, sets the trackbar range and value, centers the servo when attached, links the trackbar to change the servo position, and updates labels with status information. The tutorial is intended for beginners to learn how to interface Visual Basic with Phidget hardware.
This document provides an introduction to Visual Basic (VB). It describes VB as an evolved version of BASIC that is visual and event-driven. The VB environment contains a blank form window to design interfaces, a project window to view files, and a toolbox of controls. It also explains how to create a standard executable program in VB and describes the main components of the VB environment.
The document provides information on how to work with Visual Basic (VB), including how to start a VB project, the components of the VB window, how to place controls on a form, set properties, add code to handle events, and develop a basic VB application to display a message. The key steps are to start a new project, place controls like labels and textboxes on the form, set properties like font and color, add code triggered by events, save and run the project to see the output.
Best practices for upgrading vb 6.0 projects to vb.netajmal_fuuast
The document discusses best practices for upgrading Visual Basic 6.0 projects to Visual Basic.NET. It covers understanding the upgrade roadmap, new features in Visual Basic.NET, and demonstrations of using the upgrade wizard, upgrading forms and COM interop, drag and drop, and upgrading Win32 API calls. The presentation aims to provide VB6 developers knowledge on how to upgrade existing VB6 applications or interoperate with VB.NET.
Visual Basic is a programming language and integrated development environment created by Microsoft that allows developers to drag and drop objects and manually write code. It is designed to make software development easy through its graphical user interface and event-driven programming model. Key features of Visual Basic include its GUI interface, support for modularization, object-oriented programming, debugging tools, and data access capabilities. Variables in Visual Basic can be declared as local, semi-global, or global depending on their intended scope. The code window displays event procedures that execute code in response to user interactions with controls.
Visual Basic is a programming language and tool that allows users to easily create graphical user interface (GUI) applications for Windows. It uses a drag-and-drop interface for designing application windows and controls, which makes the development process faster compared to other languages. The Visual Basic IDE provides various windows and tools to help with writing code, designing forms, and testing applications.
This document discusses various aspects of working with forms in Visual Basic 6, including adding forms to a project, displaying and hiding forms using the Show and Hide methods, loading and unloading forms, using the Me keyword to refer to the current form, and setting the startup form. It also describes using splash screens and about boxes.
In this chaper we will learn how to change the BackColor property of an object
Understand Visual Basic 2010 code statement formatsand see how IntelliSense can be used to enter code statements.We will discuss the Visual Basic programming languge syntax and write coding statements. We will also see how to correct coding errors in Visual Basic 2010.
Correct errors in Visual Basic 2010 code. We will learn how to print code and how to prepare an Event Planning Document.
This document provides a tutorial on creating a graphical user interface (GUI) in Visual Basic Express to control a Phidget servo controller. It describes installing Visual Basic Express, creating the GUI with labels, a trackbar, and button, writing code to handle events like loading the form, trackbar movement, and Phidget attachment/detachment. The code initializes label texts, sets the trackbar range and value, centers the servo when attached, links the trackbar to change the servo position, and updates labels with status information. The tutorial is intended for beginners to learn how to interface Visual Basic with Phidget hardware.
This document provides an introduction to Visual Basic (VB). It describes VB as an evolved version of BASIC that is visual and event-driven. The VB environment contains a blank form window to design interfaces, a project window to view files, and a toolbox of controls. It also explains how to create a standard executable program in VB and describes the main components of the VB environment.
The document provides information on how to work with Visual Basic (VB), including how to start a VB project, the components of the VB window, how to place controls on a form, set properties, add code to handle events, and develop a basic VB application to display a message. The key steps are to start a new project, place controls like labels and textboxes on the form, set properties like font and color, add code triggered by events, save and run the project to see the output.
Best practices for upgrading vb 6.0 projects to vb.netajmal_fuuast
The document discusses best practices for upgrading Visual Basic 6.0 projects to Visual Basic.NET. It covers understanding the upgrade roadmap, new features in Visual Basic.NET, and demonstrations of using the upgrade wizard, upgrading forms and COM interop, drag and drop, and upgrading Win32 API calls. The presentation aims to provide VB6 developers knowledge on how to upgrade existing VB6 applications or interoperate with VB.NET.
Visual Basic is a programming language and integrated development environment created by Microsoft that allows developers to drag and drop objects and manually write code. It is designed to make software development easy through its graphical user interface and event-driven programming model. Key features of Visual Basic include its GUI interface, support for modularization, object-oriented programming, debugging tools, and data access capabilities. Variables in Visual Basic can be declared as local, semi-global, or global depending on their intended scope. The code window displays event procedures that execute code in response to user interactions with controls.
Visual Basic is a programming language and tool that allows users to easily create graphical user interface (GUI) applications for Windows. It uses a drag-and-drop interface for designing application windows and controls, which makes the development process faster compared to other languages. The Visual Basic IDE provides various windows and tools to help with writing code, designing forms, and testing applications.
This document discusses various aspects of working with forms in Visual Basic 6, including adding forms to a project, displaying and hiding forms using the Show and Hide methods, loading and unloading forms, using the Me keyword to refer to the current form, and setting the startup form. It also describes using splash screens and about boxes.
Visual Basic (VB) is a programming language and development environment created by Microsoft for building graphical user interface (GUI) applications. It uses an event-driven programming model and is ideal for rapid application development (RAD). Some key points about VB include that it has a large user base, enables access to databases, and allows building of Windows applications using pre-built components in an easy-to-understand syntax.
Visual Basic is an ideal programming language for developing Windows applications using a graphical user interface. It was developed from the BASIC programming language. The Visual Basic integrated development environment includes components like a menu bar, toolbars, project explorer, properties window, toolbox, form designer, and object browser to help developers build applications. Developers can drag and drop controls from the toolbox onto forms to create the application interface.
This document provides an overview of event-driven programming and Visual Basic fundamentals. It discusses what an event-driven program is and how it differs from procedural programming by responding to events like button clicks rather than executing code sequentially. It also covers building a first Visual Basic application, including planning the user interface and code, and using intrinsic controls. Additional sections explain properties, methods, and events of objects, and working with Visual Basic projects by opening, saving, and running them.
This document provides an overview of the history and development of the Visual Basic programming language. It discusses how Visual Basic originated from the BASIC language in the 1960s and was later adapted for microcomputers by Bill Gates and Paul Allen in the 1970s. Every version of Basic since has been based on their early work. Visual Basic was then introduced by Microsoft in 1991 and continued to be updated with new features and capabilities in subsequent versions like Visual Basic 3.0, 4.0, 5.0 and 6.0. The document also defines some key Visual Basic concepts and terms.
This document provides information about visual programming using Visual Basic 6 including:
- Visual Basic is an event-driven programming language that uses an Integrated Development Environment (IDE).
- The IDE contains tools like the toolbox, properties window, and code window to build applications. Projects can be standard applications, ActiveX controls, or other types.
- Projects contain different file types like forms (.frm), classes (.cls), and modules (.bas) that define the user interface and programming logic.
- The code window is used to write program statements using procedures, functions, conditional branching, and other programming structures. Comments can be added to document the code.
Chapter 2 — Program and Graphical User Interface Designfrancopw
Chapter 2 introduces students to the major elements of the Visual Studio 2010 integrated development environment (IDE) while designing a graphical user interface mock-up. Topics include opening Visual Studio 2010, creating a Windows Forms Application project,adding objects to a Windows form, assigning properties to objects,aligning objects on the Windows form,and saving Visual Basic projects. The chapter also discusses how to apply GUI design principles and examines the first two phases of the program development life cycle (PDLC).
This document provides an outline and overview of Chapter 3 from an introduction to Visual Basic programming textbook. It covers simple programs that print text and perform arithmetic, memory concepts, decision making using equality and relational operators, and using dialog boxes to display messages. Example code and screenshots are included to demonstrate key concepts like variables, arithmetic operators, if/then statements, and calling methods.
This document provides an introduction to visual basic programming and the visual studio .NET 2005 development environment. It outlines the history and basics of visual basic, covers object-oriented programming concepts, and demonstrates how to set up a project in visual studio .NET 2005. The next step will be the first visual basic planning and programming lesson.
Visual Basic is a third-generation event-driven programming language and integrated development environment from Microsoft. It was derived from BASIC and enables rapid application development of graphical user interface applications. Visual Basic allows programmers to create simple GUI applications as well as complex applications. It went through several versions until version 6 in 1998, after which Microsoft's extended support ended in 2008 and it was replaced by Visual Basic .NET.
Chapter 3 provides students with the skills and knowledge necessary to complete phases 2,3,and 4 of the PDLC by enhancing a GUI mock-up, designing program processing objects, and coding a program. Topics include using IntelliSense when writing code and enhancing a Visual Basic 2010 form by changing the BackColor property of an object and displaying images. This chapter also explains how to enter Visual Basic 2010 code, correct errors, and run a completed program. Finally, the chapter discusses the value of creating an event planning document.
1) The document discusses Visual Basic 2008, an object-oriented programming language developed by Microsoft. It covers topics like event-driven programming, the integrated development environment, modes of VB programs, common controls and properties, and hands-on VB topics.
2) It provides an overview of developing a VB application, including creating a form, adding controls, setting properties, writing event code, and running the application.
3) Career opportunities mentioned include jobs as a software developer or web developer working with Visual Basic.
The document provides a table of contents for the book "Visual Basic 6 Black Book" which covers topics related to the Visual Basic programming language and development environment. It lists 17 chapters that cover things like the Visual Basic interface, language basics, managing forms, menus, controls like text boxes and buttons, common dialogs, timers and serial communications. Each chapter section lists immediate solutions for common tasks within that topic area.
1. The document provides steps to synchronize the time of an HMI Basic Panel with an S7-1200 PLC.
2. It involves configuring tags on the PLC to access system time and local time, then configuring the HMI Basic Panel to display and set the time by linking to those tags.
3. Buttons on the HMI screen are programmed to set and reset a bit that triggers the PLC to write the system time, synchronizing the HMI and PLC times.
1) The document provides instructions for a lab assignment introducing visual basic programming. Students are instructed to create a basic visual basic application with a text box, button, and label.
2) The application is programmed to enable the button when text is entered in the text box, and display a greeting message combining the text box text when the button is clicked.
3) Additional code is added to clear the text box and disable the button when the label text changes. Students must have their progress checked off by a lab helper.
Software engineering modeling lab lectures
engineering+ education purpose
This series of lectures was prepared for the third class of software engineering / Aliraqia University/ Baghdad/ Iraq.
In prepared these lectures, I depend on the YouTube to make it, the programs of the lectures are designed and executed by vb.net, discussions are also found here
These lectures are not finished yet, i will improve it in the future
Forgive me for anything wrong by mistake, I wish you can profit from these lectures
My regard
Marwa Moutaz/ M.Sc. studies of Communication Engineering / University of Technology/ Bagdad / Iraq.
Visual Basic uses different data types to store numeric and non-numeric data. Numeric data types include Byte, Integer, Long, Single, Double, Currency and Decimal. Non-numeric types include String, Date, Boolean, Object and Variant. Variables are used to store and manipulate data in Visual Basic. Variables must be declared with a name and data type before being used. Common data types for variables include String, Integer, Date and Variant. Variables can be declared individually or on the same line separated by commas.
Introduction, Generations of computer, Visual Basic environment, Code window, Properties Window, IDE, Form Window, Starting an Application,Adding an Image Control, Running an Application
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, event procedures, and has features for database handling, error handling and rapid application development. The Visual Basic integrated development environment provides interfaces like a toolbox of controls, a properties window, form window, and source code window to design and develop applications.
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, event procedures, and has features for database handling, error handling and rapid application development. The Visual Basic integrated development environment provides interfaces like a toolbox of controls, a properties window, form window, and source code window to design and develop applications.
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, event procedures, and has features for database handling, error handling and rapid application development. The Visual Basic integrated development environment provides interfaces like a toolbox of controls, a properties window, form window, and source code window to design, build, and run Visual Basic applications.
Visual Basic is an event-driven programming language that allows programming in a graphical environment. The Visual Basic environment consists of a blank form window to design the application interface, a project window to view files, and a properties window to set object properties. It also includes a toolbox of controls like boxes and buttons that can be placed on forms.
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, and event procedures. The Visual Basic integrated development environment (IDE) provides tools like a form window to design the application, a toolbox of controls, and a properties window to set control properties when building a Visual Basic application.
Visual Basic (VB) is a programming language and development environment created by Microsoft for building graphical user interface (GUI) applications. It uses an event-driven programming model and is ideal for rapid application development (RAD). Some key points about VB include that it has a large user base, enables access to databases, and allows building of Windows applications using pre-built components in an easy-to-understand syntax.
Visual Basic is an ideal programming language for developing Windows applications using a graphical user interface. It was developed from the BASIC programming language. The Visual Basic integrated development environment includes components like a menu bar, toolbars, project explorer, properties window, toolbox, form designer, and object browser to help developers build applications. Developers can drag and drop controls from the toolbox onto forms to create the application interface.
This document provides an overview of event-driven programming and Visual Basic fundamentals. It discusses what an event-driven program is and how it differs from procedural programming by responding to events like button clicks rather than executing code sequentially. It also covers building a first Visual Basic application, including planning the user interface and code, and using intrinsic controls. Additional sections explain properties, methods, and events of objects, and working with Visual Basic projects by opening, saving, and running them.
This document provides an overview of the history and development of the Visual Basic programming language. It discusses how Visual Basic originated from the BASIC language in the 1960s and was later adapted for microcomputers by Bill Gates and Paul Allen in the 1970s. Every version of Basic since has been based on their early work. Visual Basic was then introduced by Microsoft in 1991 and continued to be updated with new features and capabilities in subsequent versions like Visual Basic 3.0, 4.0, 5.0 and 6.0. The document also defines some key Visual Basic concepts and terms.
This document provides information about visual programming using Visual Basic 6 including:
- Visual Basic is an event-driven programming language that uses an Integrated Development Environment (IDE).
- The IDE contains tools like the toolbox, properties window, and code window to build applications. Projects can be standard applications, ActiveX controls, or other types.
- Projects contain different file types like forms (.frm), classes (.cls), and modules (.bas) that define the user interface and programming logic.
- The code window is used to write program statements using procedures, functions, conditional branching, and other programming structures. Comments can be added to document the code.
Chapter 2 — Program and Graphical User Interface Designfrancopw
Chapter 2 introduces students to the major elements of the Visual Studio 2010 integrated development environment (IDE) while designing a graphical user interface mock-up. Topics include opening Visual Studio 2010, creating a Windows Forms Application project,adding objects to a Windows form, assigning properties to objects,aligning objects on the Windows form,and saving Visual Basic projects. The chapter also discusses how to apply GUI design principles and examines the first two phases of the program development life cycle (PDLC).
This document provides an outline and overview of Chapter 3 from an introduction to Visual Basic programming textbook. It covers simple programs that print text and perform arithmetic, memory concepts, decision making using equality and relational operators, and using dialog boxes to display messages. Example code and screenshots are included to demonstrate key concepts like variables, arithmetic operators, if/then statements, and calling methods.
This document provides an introduction to visual basic programming and the visual studio .NET 2005 development environment. It outlines the history and basics of visual basic, covers object-oriented programming concepts, and demonstrates how to set up a project in visual studio .NET 2005. The next step will be the first visual basic planning and programming lesson.
Visual Basic is a third-generation event-driven programming language and integrated development environment from Microsoft. It was derived from BASIC and enables rapid application development of graphical user interface applications. Visual Basic allows programmers to create simple GUI applications as well as complex applications. It went through several versions until version 6 in 1998, after which Microsoft's extended support ended in 2008 and it was replaced by Visual Basic .NET.
Chapter 3 provides students with the skills and knowledge necessary to complete phases 2,3,and 4 of the PDLC by enhancing a GUI mock-up, designing program processing objects, and coding a program. Topics include using IntelliSense when writing code and enhancing a Visual Basic 2010 form by changing the BackColor property of an object and displaying images. This chapter also explains how to enter Visual Basic 2010 code, correct errors, and run a completed program. Finally, the chapter discusses the value of creating an event planning document.
1) The document discusses Visual Basic 2008, an object-oriented programming language developed by Microsoft. It covers topics like event-driven programming, the integrated development environment, modes of VB programs, common controls and properties, and hands-on VB topics.
2) It provides an overview of developing a VB application, including creating a form, adding controls, setting properties, writing event code, and running the application.
3) Career opportunities mentioned include jobs as a software developer or web developer working with Visual Basic.
The document provides a table of contents for the book "Visual Basic 6 Black Book" which covers topics related to the Visual Basic programming language and development environment. It lists 17 chapters that cover things like the Visual Basic interface, language basics, managing forms, menus, controls like text boxes and buttons, common dialogs, timers and serial communications. Each chapter section lists immediate solutions for common tasks within that topic area.
1. The document provides steps to synchronize the time of an HMI Basic Panel with an S7-1200 PLC.
2. It involves configuring tags on the PLC to access system time and local time, then configuring the HMI Basic Panel to display and set the time by linking to those tags.
3. Buttons on the HMI screen are programmed to set and reset a bit that triggers the PLC to write the system time, synchronizing the HMI and PLC times.
1) The document provides instructions for a lab assignment introducing visual basic programming. Students are instructed to create a basic visual basic application with a text box, button, and label.
2) The application is programmed to enable the button when text is entered in the text box, and display a greeting message combining the text box text when the button is clicked.
3) Additional code is added to clear the text box and disable the button when the label text changes. Students must have their progress checked off by a lab helper.
Software engineering modeling lab lectures
engineering+ education purpose
This series of lectures was prepared for the third class of software engineering / Aliraqia University/ Baghdad/ Iraq.
In prepared these lectures, I depend on the YouTube to make it, the programs of the lectures are designed and executed by vb.net, discussions are also found here
These lectures are not finished yet, i will improve it in the future
Forgive me for anything wrong by mistake, I wish you can profit from these lectures
My regard
Marwa Moutaz/ M.Sc. studies of Communication Engineering / University of Technology/ Bagdad / Iraq.
Visual Basic uses different data types to store numeric and non-numeric data. Numeric data types include Byte, Integer, Long, Single, Double, Currency and Decimal. Non-numeric types include String, Date, Boolean, Object and Variant. Variables are used to store and manipulate data in Visual Basic. Variables must be declared with a name and data type before being used. Common data types for variables include String, Integer, Date and Variant. Variables can be declared individually or on the same line separated by commas.
Introduction, Generations of computer, Visual Basic environment, Code window, Properties Window, IDE, Form Window, Starting an Application,Adding an Image Control, Running an Application
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, event procedures, and has features for database handling, error handling and rapid application development. The Visual Basic integrated development environment provides interfaces like a toolbox of controls, a properties window, form window, and source code window to design and develop applications.
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, event procedures, and has features for database handling, error handling and rapid application development. The Visual Basic integrated development environment provides interfaces like a toolbox of controls, a properties window, form window, and source code window to design and develop applications.
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, event procedures, and has features for database handling, error handling and rapid application development. The Visual Basic integrated development environment provides interfaces like a toolbox of controls, a properties window, form window, and source code window to design, build, and run Visual Basic applications.
Visual Basic is an event-driven programming language that allows programming in a graphical environment. The Visual Basic environment consists of a blank form window to design the application interface, a project window to view files, and a properties window to set object properties. It also includes a toolbox of controls like boxes and buttons that can be placed on forms.
Visual Basic is a programming tool that allows users to develop graphical user interface (GUI) applications for Windows by dragging and dropping pre-built objects onto a form, rather than writing extensive code. It introduced event-driven programming and incorporates concepts like objects, events, and event procedures. The Visual Basic integrated development environment (IDE) provides tools like a form window to design the application, a toolbox of controls, and a properties window to set control properties when building a Visual Basic application.
The document discusses the history and development of Microsoft Visual Basic, from its origins in BASIC programming to its evolution into a graphical user interface development environment. It covers Visual Basic's programming model, which uses events and visual objects, and outlines the typical program development cycle of defining requirements, designing the user interface, writing code, testing, and revising. Visual Basic's integrated development environment allows for rapid application development through visual design and coding tools.
Lesson 4 Introduction to Human Computer Interaction.pptxEllenGracePorras
Visual Basic is a visual and basic programming language used to develop Windows applications. It allows for rapid application development through drag-and-drop graphical user interface (GUI) design and object-oriented programming. The Visual Studio IDE provides tools like a toolbox and code editor to help programmers efficiently develop Visual Basic applications.
IN THIS U CAN FIND
* Integrated Development Environment
* IDE COMPONENTS
* Features of Visual Basic
* Steps in Developing Application
* creating controls
* Access keys
* VARIABLES AND DATA TYPES
* STRING MANIPULATION FUNCTIONS
Visual Basic 6.0 is an event-driven programming language that allows designing graphical user
interfaces. It uses objects, properties, and methods to create forms and controls. The document
discusses various controls like labels, text boxes, frames, checkboxes, option buttons, and images
that can be used to design user interfaces in VB6. It also covers concepts like properties, events,
errors and the VB6 integrated development environment.
This document provides an overview of Windows Programming using Microsoft Visual Basic 6.0. It discusses the key elements of the Visual Basic Integrated Development Environment including the menu bar, toolbar, toolbox, form designer, properties window, and code editor window. It then provides two programming examples: 1) Designing a form to display a user's full name when a button is clicked. 2) Creating an application using data types, variants, and arrays in Visual Basic. The document concludes with an example of designing a login page that displays different messages based on entering the correct or incorrect username and password.
The document provides an introduction to programming basics and Visual Basic.NET (VB.NET), describing what a computer program and programming language are, and giving an overview of the VB.NET integrated development environment (IDE) and how to create a simple "Hello World" application in VB.NET. It explains that VB.NET is an object-oriented programming language designed by Microsoft for beginners to create Windows, web, and mobile applications.
Future Scope in Application Developement of Visual Basicijtsrd
Visual Basic for Applications is a computer programming language developed and owned by Microsoft. With VBA you can create macros to automate repetitive word and data processing functions .Applications are created with the help of Visual Basic and it is inbuilt with phone, memory devices and upcoming Artificial IntelligenceProgrammers can create both simple and complex graphical user interface applications. Programming in visual basic is a combination of visually arranging components or control some aform, specifying attributes and actions for that component. BASIC means Beginners All purpose Symbolic Instruction Co de. Visual Basic is a user friendly programming language designed for beginners and it enables anyone to develop graphical user interface application easily.which was replaced by VB .NET. However, Visual Basic for Applications, which is most commonly used today to automate Microsoft Office tasks, is highly compatible with the classic VB 6. K. Keerthana | B. Bhuvaneswari | S. Vigneshwaran "Future Scope in Application Developement of Visual Basic" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456-6470, Volume-3 | Issue-6 , October 2019, URL: https://www.ijtsrd.com/papers/ijtsrd29206.pdf Paper URL: https://www.ijtsrd.com/computer-science/programming-language/29206/future-scope-in-application-developement-of-visual-basic/k-keerthana
Visual Basic is an event-driven programming language that allows developers to build graphical user interface (GUI) applications. It uses forms to create windows for the user interface. Controls like text boxes, labels, and buttons are placed on the forms to allow user interaction. When an event like a button click occurs, the corresponding event procedure code is executed. The user interface is designed using forms, and properties are assigned to controls to determine characteristics like names, sizes, and positions. Code is attached to controls using event procedures to determine what happens when events occur.
This document discusses the fundamentals of Visual Basic .NET programming and the Visual Basic integrated development environment (IDE). It describes the two main elements of a Visual Basic application as the visual/object-based part and the procedural/language-based part. The visual part consists of controls placed on a form, while the language part involves writing code to handle control events. It introduces the main windows of the IDE, including the toolbox, form window, solution explorer, and properties window. Programmers use these windows to design forms, place controls, and write event-handling code.
The document describes the main components of the Visual Basic work environment including the main window, menu bar, toolbar, and toolbox. It explains how events work and how they are handled through event procedures. Common user actions that trigger events are starting the program, pressing keys, mouse movements, and closing the program. The document provides steps for creating a Visual Basic application using the wizard, including selecting project options and interface elements. It describes how to view and run the generated code.
The document provides information on Oracle Forms Developer 6i including:
1) Oracle Forms Developer is a development environment for building database-centric applications using a declarative model-based approach and Oracle Forms Services for deployment.
2) It provides tools to easily construct sophisticated database forms and business logic.
3) Oracle Forms Services uses a three-tier architecture for delivering Forms applications over the internet, with the browser as the client tier, application server as middle tier, and database server as database tier.
The document discusses the Document Object Model (DOM) which defines a standard way to access and manipulate HTML, XML, and HTML documents. It defines everything in an HTML document as nodes - the document itself is a document node, elements are element nodes, attributes are attribute nodes, and text is text nodes. The DOM allows programs and scripts to dynamically access and update the content, structure, and style of documents.
This document provides an introduction to JavaScript, including:
- JavaScript is a scripting language that enhances webpages and makes them more dynamic and interactive. It allows immediate responses without contacting the server.
- JavaScript is interpreted by browsers and is the foundation for complex server-side scripting. It was developed by Netscape, Mozilla Foundation, and Ecma International.
- The document discusses when to use client-side vs server-side programming and provides examples of JavaScript syntax, variables, operators, and control structures like if/else statements and loops.
1. The document discusses the history and development of the Internet and World Wide Web. It explains that the Internet is a global network of interconnected computer networks, while the World Wide Web is a system of interlinked hypertext documents accessed via the Internet.
2. Key protocols like HTTP, HTTPS, and FTP that allow communication and data transfer across the Internet are described. Concepts such as URLs, domain names, DNS, web servers, and web browsers are also defined.
3. The document traces the early origins of the Internet from the ARPANET network developed by the US Department of Defense in the 1960s to the invention of the World Wide Web by Tim Berners-Lee in 1989.
A computer network connects devices like computers and printers. It allows nodes to exchange data and communicate. There are different types of network topologies that describe how devices are physically connected, such as bus, star, ring, and tree configurations. Networks also use various transmission modes like simplex, half duplex, and full duplex to regulate the direction of data flow between nodes.
The document discusses the history of computer generations from the earliest abacus and mechanical computers through five generations of modern electronic computers. It begins with the zeroth generation that used manual methods for calculation. The first generation (1951-1958) used vacuum tubes, magnetic drums, and could store 4000 bits. The second generation (1959-1964) introduced transistors and magnetic cores. The third generation (1965-1974) featured integrated circuits. The fourth generation (1975-1989) used microprocessors and object-oriented languages. The fifth generation (1990-present) focuses on artificial intelligence and natural language processing.
- ISDN is a set of standards that define an end-to-end digital network using existing telephone wiring to transmit voice, data, video and other traffic digitally at faster rates than modems.
- ATM is a network technology that uses fixed-length cells to efficiently transmit different types of data, including real-time voice and video, over digital networks. It provides connection-oriented services with quality of service guarantees.
- Key components of ATM include the physical layer, ATM layer, ATM adaptation layer, switches, and different connection types like virtual paths and virtual circuits.
The document discusses the Transport Control Protocol (TCP) which provides reliable, ordered and error-checked delivery of data streams between applications running on hosts communicating via an IP network. It describes TCP's key functions including segmentation, error control using acknowledgements and retransmissions, flow control using sliding windows, and multiplexing/demultiplexing of data streams. The key aspects of TCP frames such as sequence numbers, acknowledgement numbers, windows and checksums are also summarized.
The document discusses Internet Protocol (IP) and its role in networking. It covers the following key points:
- IP is the primary network communication protocol and relays packets called datagrams. It provides identification of computer hosts and location services.
- IP version 4 (IPv4) uses a 32-bit address scheme to uniquely identify hosts. It provides best effort delivery of packets from source to destination.
- Other related protocols discussed include ARP, RARP, ICMP, IGMP, routing protocols, and the differences between static, dynamic and default routing. Distance vector and link state routing algorithms are also covered.
The document discusses the syllabus for a course on internetworking using TCP/IP. It covers topics like basics of internetworking, types of computer networks, synchronous vs asynchronous communication, Ethernet, bandwidth vs throughput, latency and jitter, protocol layers in networking, and an overview of the OSI 7-layer model. The document appears to be class notes or a syllabus for a networking course that introduces foundational concepts.
A computer network connects devices like computers and printers. It allows nodes to exchange data and communicate. There are different types of network topologies that describe how devices are physically connected, such as bus, star, ring, and hybrid configurations. Networks also use various transmission modes like simplex, half-duplex, and full-duplex to regulate data flow directions between nodes. Selection of the right transmission medium depends on considerations like transmission rate, cost, and distance between devices.
The document provides information about connecting to and interacting with a MySQL database using SQL commands in the MySQL shell. It covers basic queries, creating and selecting databases, creating and manipulating tables, inserting and selecting data, and other common SQL queries like sorting, filtering, grouping and counting rows. The document uses examples to demonstrate how to execute various SQL statements and view or modify data in a sample pets database with tables.
The document discusses various Linux shells including the Bourne shell, C shell, TENEX C shell, KornShell, Debian Almquist shell, Bourne Again shell, Z shell, and Friendly Interactive shell. It provides brief descriptions of each shell's history, features, and purpose. It also includes sample questions that could be asked during a viva for a Linux lab course.
The document discusses file access permissions in Linux operating systems. It explains that there are three types of permissions - read, write and execute - that can be assigned to a file's owner, group and others. These permissions determine who can access the file and what actions they can take. The ls -l command displays the permissions in the form of 10 characters that show the file type and permissions for each user category. The chmod command can be used to change these permissions using either absolute numeric modes or symbolic modes.
This document discusses user defined variables (UDV) in shell scripting and provides examples of defining, assigning values to, and printing variables. It also covers arithmetic operations using variables, conditional statements, loops, and other shell scripting concepts. Key points include:
- Syntax for defining variables is variable_name=value
- Variables are case-sensitive
- The expr command is used for arithmetic operations
- Conditional statements include if/then/else and case/esac
- Looping statements include while, until, for, and nested loops
- Examples are given for various shell scripting elements like variables, conditionals, loops, and arithmetic.
This document contains 5 shell script examples:
1. A script that performs basic mathematical operations like addition, subtraction, multiplication, and division on two numbers.
2. A script that swaps the values of two numbers using a temporary variable.
3. A script that swaps two numbers without using a temporary variable.
4. A script that determines whether a given number is even or odd.
5. An assignment to write a script that calculates percentage from marks of 5 subjects and assigns a grade based on percentage ranges.
The document provides information about various Linux commands:
- The grep command searches files for patterns and prints matching lines. Common grep options include -i to ignore case and -n to print line numbers.
- The cut command extracts sections from files by byte position, character, or field and writes to standard output. It is used to select specific columns from a file.
- The paste command joins files horizontally by outputting lines consisting of lines from each file separated by tabs. It is commonly used to merge information from multiple files.
The document discusses various features and commands related to Linux operating systems. It describes features like being free and open-source, graphical user interfaces, and portability. It also provides examples and explanations of basic Linux commands like echo, head, tail, sort, uniq, and others. Fun commands like sl, fortune, cowsay and cmatrix are also mentioned.
The document discusses tools for creating bootable USB drives from ISO files in Linux. It explains five widely used utilities - Rufus, Unetbootin, Balena Etcher, Ventoy, and Universal USB Installer. Rufus is described as a small and portable tool for Windows that allows creating bootable USB drives from ISO images of Windows and Linux. Steps for downloading and using Rufus to create a bootable Ubuntu USB are outlined.
The document provides information on the history and development of Unix and Linux operating systems. It discusses how the first version of Unix was created in 1969 at Bell Labs. It then describes the GNU project which started in 1984 with the goal of creating a free Unix-like operating system. When the Linux kernel, created by Linus Torvalds in 1991, was combined with the GNU software, it resulted in the first operating system similar to Unix that was free of cost. The document also summarizes some key open source software and their uses.
How to Make a Field Mandatory in Odoo 17Celine George
In Odoo, making a field required can be done through both Python code and XML views. When you set the required attribute to True in Python code, it makes the field required across all views where it's used. Conversely, when you set the required attribute in XML views, it makes the field required only in the context of that particular view.
The simplified electron and muon model, Oscillating Spacetime: The Foundation...RitikBhardwaj56
Discover the Simplified Electron and Muon Model: A New Wave-Based Approach to Understanding Particles delves into a groundbreaking theory that presents electrons and muons as rotating soliton waves within oscillating spacetime. Geared towards students, researchers, and science buffs, this book breaks down complex ideas into simple explanations. It covers topics such as electron waves, temporal dynamics, and the implications of this model on particle physics. With clear illustrations and easy-to-follow explanations, readers will gain a new outlook on the universe's fundamental nature.
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
This slide is special for master students (MIBS & MIFB) in UUM. Also useful for readers who are interested in the topic of contemporary Islamic banking.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
How to Setup Warehouse & Location in Odoo 17 InventoryCeline George
In this slide, we'll explore how to set up warehouses and locations in Odoo 17 Inventory. This will help us manage our stock effectively, track inventory levels, and streamline warehouse operations.
How to Manage Your Lost Opportunities in Odoo 17 CRMCeline George
Odoo 17 CRM allows us to track why we lose sales opportunities with "Lost Reasons." This helps analyze our sales process and identify areas for improvement. Here's how to configure lost reasons in Odoo 17 CRM
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
3. HOWTO WORK WITH VISUAL BASIC?
• Visual Basic (VB) is the third-generation event-driven programming language and
• integrated development environment (IDE) from Microsoft or its COM programming model.
• Visual Basic is relatively easy to learn and use.
• 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.
• Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but
perform differently.
• A programmer can put together an application using the components provided with Visual
Basic itself. Programs written in Visual Basic can also use the Windows API, but doing so
requires external function
GUIProgrammingLaboratory-Prof.D.P.Mishra
3
4. HOWTO START VISUAL BASIC?
FIG.1.1 NEW PROJECT WINDOW
TO START VISUAL BASIC,THE STEPS ARE-
1.CLICK ON START PROGRAMS
MICROSOFT VISUAL BASIC STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0
2.THE NEW PROJECT WINDOW APPEARS
(FIG.1.1)
THE NEW PROJECT WINDOW HAS THREE
TABS:-
1)NEW:TO START A NEW PROJECT.
2)EXISTING:TO SELECT FROM A LIST OF
EXISTING PROJECTS.
3)RECENT:TO SELECT FROM THE LIST OF
RECENTLY OPENED PROJECTS.IN
THE NEW TAB ,SELECT STANDARD.EXE
APPLICATION .THIS OPENS THE MICROSOFT
VISUAL BASIC WINDOW.
`
GUIProgrammingLaboratory-Prof.D.P.Mishra
4
5. COMPONENTS OF VB WINDOW
Project
window
Propertie
s window
Propertie
s layout
window
Form
window
Tool box
Tool
bar
Menu
bar
Title
bar
FIG 1.2 COMPONENTS
OF WINDOW
GUIProgrammingLaboratory-Prof.D.P.Mishra
5
6. TITLE BAR:-
THE TITLE BAR(FIG 1.3)APPEARS AT THE TOP OF THE
VB WINDOW AND DISPLAYS TITLE OF THE PROJECT.
BY DEFAULT THE VB GIVES NAME SUCH AS PROJECT1,
PROJECT 2 .
A VB APPLICATION WORKS ON 3 MODES:-
FIG 1.3
TITLE BAR
RUN
MODE
BREAK
MODE
DESIGN
MODE
GUIProgrammingLaboratory-Prof.D.P.Mishra
6
7. MENU BARANDTOOL BAR
MENU BAR-
THE MENU BAR(FIG 1.4) CONSISTS OF MANY DROP-DOWN MENUS.CLICKING ON ANY OF
THE OPTION OF THE MENU BAR MAKES IT ACTIVE.
TOOL BAR-
THE TOOL BAR(FIG 1.4) HAS BUTTONS THAT PROVIDE SOME OF THE MENU OPTIONS.
Menu bar
FIG 1.4 MENU BAR AND TOOL BAR
GUIProgrammingLaboratory-Prof.D.P.Mishra
7
8. FORM WINDOW
THE FORM WINDOW(FIG1.5)
IS THE PRIMARY WORK
AREA THAT FORMS THE
BACKGROUND OF THE
APPLICATION .
THE USER
CAN DRAW OBJECTS ON
THE FORM.
FIG. 1.5 FORM WINDOW
GUIProgrammingLaboratory-Prof.D.P.Mishra
8
9. TOOLBOX
THE TOOLBOX (FIG 1.6)CONTAINS ICONS
THAT REPRESENT COMMONLY USED
CONTROLS SUCH AS LABEL,TEXTBOX,
COMMAND BUTTON ,ETC.
FIG 1.6 TOOLBOX
GUIProgrammingLaboratory-Prof.D.P.Mishra
9
10. GUIProgrammingLaboratory-Prof.D.P.Mishra
10
PROJECT WINDOW
IT DISPLAYS A LIST OF ALL FORMS THAT MAKES UP
THE APPLICATION.IT HAS THREE BUTTONS ON THE TOP LEFT.(FIG 1.7)
1.CLICK ON VIEW OBJECT TO OPEN A FORM.
2.CLICK ON VIEW CODE TO OPEN CODE WINDOW.
View
Code
View
object
Select
form
FIG 1.7 PROJECT WINDOW
11. GUIProgrammingLaboratory-Prof.D.P.Mishra
11
PROPERTIES WINDOW
THE PROPERTIES WINDOW LISTS THE PROPERTY OF THE SELECTED
CONTROLS OR FOR THE FORM. THE PROPERTY WINDOW HAS TWO TABS:
1.THE ALPHABETIC TAB LIST ALL THE PROPERTIES IN ALPHABETIC
ORDER.(FIG 1.8)
2.THE CATEGORIZED TAB LISTS THE PROPERTIES CATEGORY-
WISE(FIG 1.9)
FIG 1.8 ALPHABETIC TAB OF PROPERTIES
WINDOW
FIG 1.9 CATEGORIZED TAB OF
PROPERTIES WINDOW
13. GUIProgrammingLaboratory-Prof.D.P.Mishra
13
IN VB, AN APPLICATION CAN BE DEVELOPED BY THE
FOLLOWING STEPS:
1. CREATE A FORM
2. PLACE CONTROLS ON THE FORM
3. SET PROPERTIES OR THE CONTROL
4. ADD CODE TO THE HANDLE THE EVENTS
THE CONTROLS IN THE TOOLBOX CAN BE CALLED
OBJECTS IN VB.
EVERY CONTROL IS ASSOCIATED WITH ITS INDIVIDUAL
PROPERTIES ,METHODS AND EVENTS.
DEVELOPMENT OF ANAPPLICATION
14. GUIProgrammingLaboratory-Prof.D.P.Mishra
14
PROPERTY
IT IS THE NAMED ATTRIBUTE OF AN OBJECT
FOR EXAMPLE,THE TEXT BOX HAS PROPERTIES
SUCH AS COLOR,FONT,ENABLED,VISIBLE,ETC.
METHOD
IT IS AN ACTION THAT CAN BE PERFORMED ON AN OBJECT.
EVENT
WE KNOW THAT VB IS AN EVENT-DRIVEN PROGRAMMING
LANGUAGE.A TEXT BOX SUPPORTS VARIOUS EVENTS SUCH
AS
CLICK,DOUBLE-CLICK,MOUSE UP ETC.WHEN AN
EVENT OCCURS,A PARTICULAR CODE IS EXECUTED
15. GUIProgrammingLaboratory-Prof.D.P.Mishra
15
HOWTO PLACE CONTROLS ONTHE FORM?
A CONTOL CAN BE PLACED ON A FORM USING TWO METHODS.
FIRST METOD
• DOUBLE CLCK ON THE CONTROL IN THE ICON IN THE TOOLBOX.
• THE CONTROL APPEARS IN THE MIDDLE OF FORM.(FIG 1.11)
FIG 1.11 CONTROL ON THE FORM
16. SECOND METHOD
CLICK ON THE CONTROL ICON IN THE TOOLBOX AND THEN
CLICK ON THE DESIRED LOCATION ON THE FORM.DRAG THE
MOUSE DIAGONALLY SO THAT THE CONTROL HAS THE DESIRED
SIZE.(FIG 1.14)
TO REPOSITION THE CONTROL ,HOLD DOWN THE LEFT MOUSE
BUTTON AND DRAG THE CONTROL TO A NEW LOCATION,
TO RESIZE THE CONTROL,CLICK THE CONTROL,DRAG ONE OF
ITS EDGES OR CORNERS.
FIG 1.14 DRAGGING DIAGONALLY
GUIProgrammingLaboratory-Prof.D.P.Mishra
16
17. GUIProgrammingLaboratory-Prof.D.P.Mishra
17
TO CHANGE THE POSITION OF THE CONTROL:
FIG 1.12 DRAGGING THE CONTROL
TO RESIZE THE CONTROL JUST CLICK ON THE
CONTROL AND RESIZE THE POINTERS ON ITS EDGES
AND CORNERS.
DRAG THE EDGES POINTER FOR CHANGING THE SIZE EITHER
HORIZONTALLY OR VERTICALLY.[FIG 1.13(a)]
DRAG THE CORNER POINTERS FOR CHANGING THE SIZE
DIAGONALLY.[FIG 1.13(b)]
FIG 1.13(a) RESIZING CONTROL VERTICALLY FIG 1.13(b) RESIZING DIAGONALLY
DRAG IT TO THE NEW LOCATION.
(FIG.1.12)
CLICK THE CONTROL
19. GUIProgrammingLaboratory-Prof.D.P.Mishra
19
• TO CREATE A VB APPLICATION ,WE NEED AN
INTERFACE FOR THE USER TO INTERACT.
• THE FORM IS WHERE THE INTERFACE IS
DRAWN.
• SOME OF THE COMMON PROPERTIES , EVENTS
AND METHODS ARE:
FORM OBJECT
20. FORM PROPERTIES
CAPTION :IT SETS THE TITLE OF THE FORM
NAME :IT GIVES THE NAME OF THE FORM WITH WHICH IT IS
REFERRED TO IN THE CODE.THE DEFAULT VALUE IS FORM.
APPEARANCE:VALUE 1 MAKES THE FORM LOOK LIKE THREE-
DIMENSIONAL.VALUE 0 MAKES THE FORM LOOK
FLAT.
FONT:IT SETS THE FONT TYPE ,FONT STYLE AND FONT SIZE
FOR THE TEXT.
FORE COLOR :IT SETS THE COLOR FOR THE TEXT ON THE FORM.
ENABLED:VALUE TRUE MAKES THE FORM RESPOND TO MOUSE
AND KEYBOARD EVENTS.VALUE FALSE MAKES THE
FORM RESPONDING TO ANY EVENT.
BACK COLOR:IT SETS THE FORM’S BACKGROUND COLOR.
VISIBLE: VALUE FALSE MAKES THE FORM INVISIBLE
GUIProgrammingLaboratory-Prof.D.P.Mishra
20
21. FORM EVENTS
CLICK FORM-CLICK EVENT IS TRGGERED WHEN THE USER CLICKS
ON THE FORM .
LOAD FORM-LOAD EVENT IS TRIGGERED WHEN THE FORM I LOADED.
THIS LOADS THE FORM INTO THE MEMORY.
FORM METHODS
PRINT THIS PRINTS TEXT STRING ON THE FORM.
SHOW THIS MAKES THE FORM VISIBLE.IT IS THE
SAME AS SETTING A FORM’S VISIBLE
PROPERTY ON TRUE.
HIDE THIS MAKES THE FORM INVISIBLE
GUIProgrammingLaboratory-Prof.D.P.Mishra
21
22. LET US SEE HOW A VB APPPLIATION IS
CREATED AND EXECUTED
SUPPOSE WE WANT TO DISPLAY A MESSAGE ‘LEARNING VISUAL BASIC
IS FUN’ ON THE FORM.
THE STEPS TO CREATE EXEXCUTE AND SAVE VB APPLICATION FOR
THIS MESSAGE ARE:
CLICK
ON
START
GUIProgrammingLaboratory-Prof.D.P.Mishra
22
24. 4.MAKE SURE FORM IS SELECTED IN THE
PROJECT EXPLORER WINDOW.
5.IN THE PROPERTIES WINDOW
CHANGE THE CAPTION MESSAGE.
SELECT THE BACKCOLOR OF THE FORM.
CLICK ON THE DROP-DOWN ARROW ON THE RIGHT OF BACK
COLOR AND SELECT A COLOR.
MAKE SURE THE PALLETE TAB IS SELECTED.(FIG 1.16)
FIG 1.16 BackColor Property
GUIProgrammingLaboratory-Prof.D.P.Mishra
24
25. • SELECT THE FONT CLICK ON THE BUTTON TO THE RIGHT WITH THREE DOTS(FIG 6.17).
• THE FONT WINDOW APPEARS.(FIG 6.18)
• SET THE FONT AS ARIAL,FONT STYLE AS BOLD AND SZE AS 18;AND CLICK ON OK.
FIG 6.17 FONT PROPERTY FIG 1.18 FONT WINDOW
GUIProgrammingLaboratory-Prof.D.P.Mishra
25
26. 6.TO WRITE THE CODE:
• DOUBLE-CLICK ANYWHERE ON THE FORM TO GET
THE CODE TEMPLATE(FIG 1.19).
• BETWEEN THE TWO LINESOF THE TEMPLATE,TYPE
THE FOLLOWING CODE(FIG 1.20)
FIG 1.19 CODE TEMPLATE FIG 1.20 VB CODE
GUIProgrammingLaboratory-Prof.D.P.Mishra
26
27. 7.TO SAVE THIS VB APPLICATION:
i. SELECT FILE SAVE TO FIRST SAVE THE FORM(FIG 1.21) AND
THEN THE PROJECT (FIG 1.22).
8.TO RUN THIS VB APPLICATION:
i. PRESS F5 OR CLICK THE START BUTTON ON THE TOOL BAR.(FIG 1.23)
FIG 1.23 START BUTTON ON TOOLBAR
Start button
FIG 1.21 SAVE FROM FIG 1.22 SAVE PROJECT
GUIProgrammingLaboratory-Prof.D.P.Mishra
27
28. 9.THE OUTPUT OF THIS VB APPLICATION IS SHOWN
IN (FIG 1.24).
FIG 1.24 OUTPUT OF THE VB CODE
FAST FORWARD
TO RUN A PROGRAM
PRESS F5
GUIProgrammingLaboratory-Prof.D.P.Mishra
28
29. COMMON CONTROLS
POINTER
• THE POINTER PROVIDES THE WAY TO RESIZE
OR MOVE THE OTHER CONTROLS.
• THIS IS AUTOMATICALLY ACTIVATED AFTER
THE USER PLACES A CONTROL ON THE FORM.
TOP TIP
THE POINTER IS THE ONLY CONTROL IN THE
TOOLBOX THAT CANNOT BE PLACED ON THE FORM
GUIProgrammingLaboratory-Prof.D.P.Mishra
29
30. LABEL
LABEL IS A CONTROL THAT CAN BE USED TO DISPLAY TEXT THAT
USER CAN EDIT DIRECTLY.
PROPERTIES
NAME : THIS GIVES THE NAME USED TO REFER LABEL IN THE CODE.
CAPTION: THIS IS THE TEXT DISPLAYED IN THE LABEL.
FONT: THIS SETS FONT,FONT STYLE AND FONT SIZE.
BORDER STYLE: THIS DETERMINES THE TYPE OF BORDER.
APPEARANCE: THIS IS 3-D IN APPEARANCE.
EVENTS
CLICK:THIS EVENT IS TRIGGERED WHEN THE USER CLICKS ON THE
LABEL.
DOUBLE CLICK:THIS EVENT IS TRIGGERED WHEN TH USER DOUBLE-
CLICKS ON THE LABEL
GUIProgrammingLaboratory-Prof.D.P.Mishra
30
31. TEXTBOX
• THE TEXT BOX IS A CONTROL THAT IS USED TO RECEIVE INPUT FROM
THE USER AND ALSO TO DISPLAY THE OUTPUT.
• IT CAN HANDLE STRING(TEXT) AND NUMERIC DATA BUT NOT
PICTURE OR IMAGES.
PROPERTIES
NAME: THIS IS THE NAME USED TO REFER TO THE TEXTBOX IN THE CODE.
APPEARANCE: THIS IS 3-D OR FLAT IN APPEARANCE
MAXLENGTH: THIS LIMITS THE LENGTH OF THE TEXT. VALUE 0 INDICATES
LIMITED LENGTH.
MULTILINE: THIS SPECIFIES WHETHER THE TEXTBOX DISPLAYS A SINGLE LINE
OR MULTIPLE LINES.
GUIProgrammingLaboratory-Prof.D.P.Mishra
31
32. PASSWORD CHAR:THIS HIDES THE TEXT WITH A
SINGLE CHARACTER(USUALLY * IS USED).
ENABLED:VALUE TRUE/FALSE DETERMINES WHETHER
THE TEXTBOX RESPONDS TO ANY EVENT OR NOT.
LOCKED:VALUE TRUE/FALSE DETERMINES WHETHER
THE TEXTBOX CONTENTS CAN BE CHANGED OR NOT.
TEXT:THIS IS THE STRING TO BE DISPLAYED IN THE TEXTBOX.
EVENTS
CHANGE:THIS EVENT IS TRIGGERED EVERY TIME WHEN
THE TEXTBOX DISPLAYS A SINGLE LINE OR MULTIPLE
LINE.
METHOD
SetFocus:THIS POSITIONS THE CURSOR INSIDE THE TEXT BOX.
GUIProgrammingLaboratory-Prof.D.P.Mishra
32
33. COMMAND BUTTON
THE COMMAND BUTON IS VERY IMPORTANT CONTROL AS IT IS
USED TO EXECUTE COMMANDS AND IT DISPLAYS AN ILLUSION
THAT THE BUTTON IS PRESSEDWHEN THE USER CLICKS ON IT.
PROPERTIES
APPEARANCES: THIS IS 3-D OR FLAT IN APPEARANCE.
CAPTION:THIS IS THE STRING THAT IS DISPLAYED ON THE
COMMAND BUTTON.
VISIBLE:VALUE TRUE/FALSE DETERMINES WHETHER IT IS VISIBLE
OR NOT.
FONT:THIS SETS FONT,FONT STYLE AND FONT SIZE.
ENABLED:VALUE TRUE/FALSE DETERMINES WHETHER IT RESPONDS
TO AN EVENT OR NOT.
EVENTS
CLICK:THIS EVENT IS TRIGGERED WHEN IT IS SELECTED BY CLIICKING
ON IT.
GUIProgrammingLaboratory-Prof.D.P.Mishra
33
34. LET US NOW CREATE AN APPLICATION
USING ALL THE COMMANDS DISCUSSED
PREVIOUSLY
THE STEPS TO CREATE ,EXECUTE AND SAVE A VB
APPLICATION ARE:
1)SELECT PROGRAMS
MICROSOFT VISUAL BASIC 6.0.
2)IN THE NEW PROJECT WINDOW,SELECT STANDARD.
EXE.TH FORM WILL APPEAR ON THE SCREEN.
3)NOTICE THAT THE PROPERTIES OF THE FORM WILL
APPEAR IN THE PROPERTIES WINDOW.
i. SELECT CAPTION , AND TYPE ‘DISPLAY MESSAGE’.
ii SELECT BackColor , AND CHANGE IT TO ORANGE.(FIG 1.25)
GUIProgrammingLaboratory-Prof.D.P.Mishra
34
35. 4)PLACE THE LABEL ON THE FORM AND CHANGE ITS
PROPERIES AS SHOWN BELOW:
PROPERTIES SETTINGS
CAPTION ENTER YOUR NAME
FONT 12,BOLD
BackColor SAME AS FORM
5)PLACE ANOTHER LABEL ON THE FORM AND CHANGE IN
PROPERTIES AS SHOWN BELOW:
PROPERTIES SETTINGS
NAME lblmessage
FIG 1.25 CHANGED CAPTION AND BackColor
GUIProgrammingLaboratory-Prof.D.P.Mishra
35
36. CAPTION (BLANK)[DELETE LABEL 2 THAT APPEARS ON THE
RIGHT SIDE]
BorderStyle 1-FIXED SINGLE
FONT 12,BOLD
6) PLACE THE TEXTBOX ON THE FORM AND CHANGE ITS PROPERTIES
AS SHOWN BELOW:
PROPERTIES SETTING
NAME txtname
TEXT (BLANK)
FONT 12,BOLD
7)PLACE COMMAND BUTTON ON THE FORM AND CHANGE ITS
PROPERTIES AS SHOWN BELOW:
PROPERTIES SETTING
NAME cmdok
CAPTION OK
FONT 12,BOLD
8)PLACE ANOTHER COMMAND BUTTON ON THE FORM AND
CHANGE ITS PROPERTIES AS SHOWN BELOW:
GUIProgrammingLaboratory-Prof.D.P.Mishra
36
37. PROPERTIES CONTROLS
NAME cmdEXIT
CAPTION EXIT
FONT 12 ,BOLD
9)TO WRITE THE CODE,DOUBLE-CLICK ON THE OK
COMMAND BUTTON TO GET THE CODE TEMPLATE.WRITE
THE CODE AS SHOWN IN FIG 1.26
10)CLICK ON THE VIEW OBJECT BUTTON IN THE PROJECT
EXPLORER WINDOW TO RETURN TO THE FORM.
11)DOUBLE-CLICK ON THE EXIT COMAND BUTTON TO GET
CODE TEMPLATE.WRITE THE CODE AS SHOWN IN
FIG.1.27
FIG 1.26 VB CODE
GUIProgrammingLaboratory-Prof.D.P.Mishra
37
38. 12) TO SAVE THIS VB APPLICATION,SELECT FILE
SAVE PROJECT AS.THIS FIRST SAVES THE FORM AND
THEN THE PROJECT.
13)TO RUN THIS APPLICATION,PRESS F5 OR CLICK THE
START BUTTON ON THE TOOLBAR.
TRICKY TERMS
GUI-(GRAPHICAL USER INTERFACE)IT ENABLES THE USER TO INTERACT WITH AN
APPLICATIONTHROUGH THE USE OF ICONS,BUTTONS,MENUS,DIALOG BOXES AND
WINDOWS.
EVENT-DRIVEN PROGRAMMING-A PROGRAMMING BASED ON
THE EVENT(ACTION)PERFORMED.
INTEGRTED DEVLOPMENT ENVIRONMENT-INTEGRATING MANY DIFFERENT
FUNCTIONS SUCH AS DESIGNING,EDITING,COMPILING,
DEBUGGING IN A SINFGLE WINDOW.
FIG 1.27 VB CODE
GUIProgrammingLaboratory-Prof.D.P.Mishra
38