Creating Simple Visual Basic .NET Windows Applications CHAPTER TWO – Pemrograman Visual

advertisement
Matakuliah
Tahun
: T0063 – Pemrograman Visual
: 2009
Creating Simple Visual Basic .NET Windows
Applications
CHAPTER TWO
Chapter Introduction
• The Integrated Development Environment (IDE)
is used for modern software development.
• The IDE contains tools to write code, build a
GUI , and test and debug applications.
• Overview of the application construction process.
• Design issues are addressed.
• Visual Basic .NET controls are examined.
• The MsgBox statement and InputBox() function
are visited.
• A project is developed as a working application.
Bina Nusantara University
2
Objectives
• Design and construct simple complete applications from
scratch.
• Explain the structure of Visual Basic .NET.
• List the characteristics of several Visual Basic .NET
controls.
• Identify the purpose of each major control of the Visual
Basic .NET IDE.
• Explain basic programming practices that contribute to
the readability of programs.
Bina Nusantara University
3
2.1 From New Solution to Finished
Application
•
•
•
•
Overview of the Construction Process
Design Mode
Run Mode
Break Mode
Bina Nusantara University
4
Design Time and Run Time
•
•
•
•
In design mode, the project is in design time.
In run mode, the project is in run time.
Some errors can be found and corrected in design time.
Other errors can only be detected during run time.
Bina Nusantara University
5
2.2 Overview of Controls
• Standard controls are used to create user-friendly
applications.
• Standard controls help users lower the learning curve for
new programs.
Bina Nusantara University
6
Categories of Controls
• Trigger: Initiate processing
– Ex. Button, MainMenu, and Timer
• Input: Get data from user
– Ex. TextBox, RadioButton, and CheckBox
• Output: Display results to user
– Ex. Label, DataGrid, and ListView
Bina Nusantara University
7
Categories of Controls (cont.)
• Organize: Group other controls
– Ex. Form, GroupBox, and Panel
• Data Access: Interface with databases
– Ex. Entire Data Group and DataGrid
Bina Nusantara University
8
The Correct Control for the Job
• Chose controls to satisfy user requirements.
• Different controls are good for different tasks.
• The Button, Label, and Textbox controls are introduced.
Bina Nusantara University
9
2.3 The Visual Basic .NET Development
Environment
• The IDE helps develops create efficient and effective
solutions.
• The IDE for Visual Basic .NET is common to all the other
tools available in the Visual Studio. NET suite.
Bina Nusantara University
10
Main Tools Used in Visual Basic .NET
•
•
•
•
•
Menu
Toolbar
Solution Explorer
Properties Editor
Task List
Bina Nusantara University
•
•
•
•
Toolbox
Designer Window
Code Window
Help System
11
Download