Без темы
<<  Basic Principles of Licensing and Copyright Laws Cisco Nexus 7010 Bundles  >>
Sample Input Screen
Sample Input Screen
Visual Basic Start Page
Visual Basic Start Page
Start a New Project
Start a New Project
New Project Dialog Box
New Project Dialog Box
Initial Visual Basic Screen
Initial Visual Basic Screen
Toolbox
Toolbox
Four Controls at Design Time
Four Controls at Design Time
Text Box Control
Text Box Control
Properties Window
Properties Window
Properties Window
Properties Window
Setting the ForeColor Property
Setting the ForeColor Property
Font Property
Font Property
Button Control
Button Control
Button Control
Button Control
Add an Access Key
Add an Access Key
Add an Access Key
Add an Access Key
Auto Hide
Auto Hide
Positioning Controls
Positioning Controls
Aligning Bottoms of Controls
Aligning Bottoms of Controls
Aligning Middles of Controls
Aligning Middles of Controls
Tab Order
Tab Order
Sample Form
Sample Form
Code Editor
Code Editor
Display Events for a Control
Display Events for a Control
Display Events for a Control
Display Events for a Control
IntelliSense
IntelliSense
IntelliSense
IntelliSense
Картинки из презентации «Chapter 2 –Visual Basic, Controls, and Events» к уроку информатики на тему «Без темы»

Автор: . Чтобы познакомиться с картинкой полного размера, нажмите на её эскиз. Чтобы можно было использовать все картинки для урока информатики, скачайте бесплатно презентацию «Chapter 2 –Visual Basic, Controls, and Events.ppt» со всеми картинками в zip-архиве размером 1304 КБ.

Chapter 2 –Visual Basic, Controls, and Events

содержание презентации «Chapter 2 –Visual Basic, Controls, and Events.ppt»
Сл Текст Сл Текст
1Chapter 2 –Visual Basic, Controls, and 33Aligning Middles of Controls. snap
Events. 2.1 An Introduction to Visual line. 33.
Basic 2.2 Visual Basic Controls 2.3 Visual 34Tab Order. The tab indices determine
Basic Events. 1. the order in which controls receive the
22.1 An Introduction to Visual Basic focus during tabbing. The control whose
2010. Why Windows and Why Visual Basic How TabIndex property is set to 0 has the
You Develop a Visual Basic Application The focus when the program begins. 34.
Different Versions of Visual Basic. 2. 352.3 Visual Basic Events. An Event
3Visual Basic 2010. Language used to Procedure Walkthrough Properties and Event
create Windows applications. Provides a Procedures of the Form The Header of an
Graphical User Interface or GUI. The Event Procedure. 35.
sequence of instructions executed in the 36Event. An event is an action, such as
program is controlled by events. 3. the user clicking on a button Usually,
4Sample Input Screen. 4. nothing happens in a Visual Basic program
5How to Develop a Visual Basic until the user does something and raises
Application. Design the Interface for the an event. What happens is determined by
user. Determine which events the controls statements inside the event procedure. 36.
on the window should recognize. Write the 37Sample Statements. txtBox.ForeColor =
event procedures for those events. 5. Color.Red txtBox.Visible = True
6Different Versions of Visual Basic. txtBox.Text = "Hello World"
Version 1.0 – 1991 Version 2.0 – 1992 General Form: controlName.property =
Version 3.0 – 1993 Version 4.0 – 1995 setting. 37.
Version 5.0 – 1997 Version 6.0 – 1998 38Sample Form. txtFirst. txtSecond.
Visual Basic.NET – 2002 (NOT BACKWARD btnRed. 38.
COMPATIBLE WITH EARLIER VERSIONS) Visual 39Focus. When you click on a text box, a
Basic 2005 – November 2005 Visual Basic cursor appears in the text box, and you
2008 – November 2007 Visual Basic 2010 – can type into the text box. Such a text
April 2010. 6. box is said to have the focus. If you
72.2 Visual Basic Controls. Starting a click on another text box, the first text
New Visual Basic Program Text Box Control box loses the focus and the second text
Button Control Label Control List Box box receives the focus. 39.
Control Name Property Fonts / Auto Hide 40Examples of Events. btnShow.Click
Positioning and Aligning Controls. 7. txtBox.TextChanged txtBox.Leave. General
8Visual Basic Start Page. 8. Form: controlName.event. 40.
9Start a New Project. 9. 41The Three Steps in Creating a Visual
10New Project Dialog Box. select. click Basic Program. Create the interface; that
on OK button. 10. is, generate, position, and size the
11Initial Visual Basic Screen. 11. objects. Set properties; that is,
12Toolbox. 12. configure the appearance of the objects.
134 Ways to Place a Control from the Write the code that executes when events
Toolbox onto the Form Designer. occur. 41.
Double-click Drag and Drop Click, Point, 42Code Editor. Code Editor tab. Form
and Click Click, Point, and Drag. 13. Designer tab. 42.
14Four Controls at Design Time. To 43Display Events for a Control. Select
select a control, click on it. Sizing the control Click on the Events button ( )
handles will appear when a control is in the Properties window. events button.
selected. text box. 14. 43.
15Text Box Control. Used for input and 44Structure of an Event Procedure.
output When used for output, ReadOnly Private Sub objectName_event(...) Handles
property is set to True. Tasks button. objectName.event statements End Sub (...)
sizing handles. 15. is filled automatically with (ByVal sender
16Properties Window. Press F4 to display As System.Object, ByVal e As
the Properties window for the selected System.EventArgs). header. 44.
control. categorized view alphabetical 45Create an Outline for an Event
view. 16. Procedure. Double-click on a control or
17Properties Window (continued). Select a control, click on the Events
selected control. properties. settings. button in the Properties window, and
Description pane. 17. double-click on an event (We nearly always
18Some Often Used Properties. Text use the first method.). 45.
Autosize Font.Name Font.Size ForeColor 46Sample Form. Double-click on txtFirst
BackColor ReadOnly. 18. to create the outline for the Code Editor.
19Setting Properties. Click on property txtFirst. txtSecond. btnRed. 46.
name in left column. Enter its setting 47Code for Walkthrough. Public Class
into right column by typing or selecting frmDemo Private Sub
from options displayed via a button or txtFirst_TextChanged(...) Handles
ellipses. 19. txtFirst.TextChanged txtFirst.ForeColor =
20Setting the ForeColor Property. Click Color.Blue End Sub End Class. 47.
on ForeColor. Click on button at right of 48IntelliSense. Automatically pops up to
settings box. Click on Custom tab to help the programmer. txtFirst. 48.
obtain display shown. Click on a color. 49Code Editor. click tab to return to
20. Form Designer. 49.
21Font Property. Click on Font in left 50Sample Form. Double-click on btnRed to
column. Click on ellipsis at right of return to Code Editor and add the outline
settings box to obtain display shown. Make of an event procedure. txtFirst.
selections. 21. txtSecond. btnRed. 50.
22Button Control. The caption on the 51Code for Walkthrough. Public Class
button should indicate the effect of frmDemo Private Sub
clicking on the button. Text property. 22. txtFirst_TextChanged(...) Handles
23Add an Access Key. 23. txtFirst.TextChanged txtFirst.ForeColor =
24Label Control. Used to identify the Color.Blue End Sub Private Sub
contents of a text box. Text property btnRed_Click(...) Handles btnRed.Click
specifies caption. By default, label txtFirst.ForeColor = Color.Red End Sub End
automatically resizes to accommodate Class. 51.
caption on one line. When the AutoSize 52Event Procedure txtFirst.Leave. Select
property is set to False, label can be txtFirst on the form Click on the Events
resized manually. AutoSize is used button in the Properties window
primarily to obtain a multi-rowed label. Double-click on Leave. 52.
24. 53Code for Walkthrough. Private Sub
25List Box Control. Initially used to txtFirst_Leave(...) Handles txtFirst.Leave
display several pieces of output. In txtFirst.ForeColor = Color.Black End Sub
Chapter 4 used to select from a list. 25. Private Sub txtFirst_TextChanged(...)
26The Name Property. Used by the Handles txtFirst.TextChanged
programmer to refer to a control in code txtFirst.ForeColor = Color.Blue End Sub
Setting for Name property near top of Private Sub btnRed_Click(...) Handles
Properties window Use appropriate btnRed.Click txtFirst.ForeColor =
3-character naming prefix Use descriptive Color.Red End Sub. 53.
names. 26. 54Header of Event Procedure. Name, can
27Control Name Prefixes. Control. be changed. Identifies event. Private Sub
Prefix. Example. button. btn. btnCompute. btnRed_Click(…) Handles btnRed.Click.
label. lbl. lblAddress. text box. txt. Private Sub Button_Press(…) Handles
txtAddress. list box. lst. lstOutput. 27. btnRed.Click. 54.
28Renaming the Form. Initial name is 55Handling Multiple Events. An event
Form1 The Solution Explorer window lists a procedure can be invoked by two events.
file named Form1.vb. To rename the form, Private Sub Happening(...) Handles
change the name of this file to newName.vb btnRed.Click,txtSecond.Leave
newName should begin with prefix frm. 28. txtFirst.ForeColor = Color.Red End Sub.
29Fonts. Proportional width fonts, such 55.
as Microsoft Sans Serif, use less space 56Altering Properties of the Form. The
for "I" than for "W" following won't work: frmDemo.Text =
Fixed-width fonts take up the same amount "Demonstration" The form is
of space for each character – like Courier referred to by the keyword Me. Me.Text =
New Fixed-width fonts are used for tables. "Demonstration" 56.
29. 57Open and Run an Existing Program.
30Auto Hide. Hides Toolbox when not in Click on Open Project in the File menu.
use Vertical push pin icon indicates auto Navigate to the program’s folder.
hide is disabled. Click the push pin to Double-click on the program’s folder to
make it horizontal and enable auto hide. open it. Double-click on the file with
push pin. 30. extension sln. In the Solution Explorer
31Positioning Controls. proximity line. double-click on the file with extension
31. vb. (The Form Designer will appear.) Press
32Aligning Bottoms of Controls. snap F5 to run the program. 57.
line. 32.
Chapter 2 –Visual Basic, Controls, and Events.ppt
http://900igr.net/kartinka/informatika/chapter-2-visual-basic-controls-and-events-253760.html
cсылка на страницу

Chapter 2 –Visual Basic, Controls, and Events

другие презентации на тему «Chapter 2 –Visual Basic, Controls, and Events»

«Переменные Visual Basic» - A = 216 b = -31576 c = 3.1415926 D = “visual basic” А = А - 10. Переменные: тип, имя, значение. Пример программного кода Visual Basic. Объявление переменных. Присваивание переменным значений. Имена переменных. Типы переменных. Byte, short, integer, long, single, double – типы числовых значений. Переменная.

«Quick Basic» - Программа на Quick Basic. Программа «Вычисление числовой последовательности». Задание 1.5. Предыстория Quick Basic. Составить программу для вычисления числовой последовательности: 2, 4, 8, 16, 32, 64 … Программа в блок-схеме. Программа на Quick Basic Программа в блок-схеме Предыстория Quick Basic.

«Защита ребенка в сети Интернет» - В сети нужно быть тоже ответственным за свои слова. Миром правит любовь. Интернет – это зло. Будьте для ребёнка примером. Провести беседу с ребенком что такое Интернет. Грубияны и хулиганы. Быть рядом. Запреты. Дети в Интернете. Почему дети уходят в Интернет. Наполним Интернет позитивом. Воображение не воспринимает частицу «НЕ».

«Математическое моделирование» - Первая модель. Матрица способности быть предшественником. Математическое моделирование и проектирование – © Н.М. Светлов, 2010. Учебные материалы в сети Internet. Математическое моделирование и проектирование. 6. Моделирование системы земледелия. Операции над векторами и матрицами. 3. Типология математических моделей.

«Интернет в учебном процессе» - Школьные сайты. Применение в обучении информационных сетей не должно быть самоцелью. Ориентация на личностные сферы и структуры: 1) ЗУН + 2) СЭН + 3) СУМ. Классификационные параметры технологии. Направление модернизации: информатизация. Современные модели и технологии обучения в образовательном учреждении.

«Понятие мультимедиа» - Примеры. Мультимедиа-системы. Мультимедиa-технологии. Носители. Компании. Революционные изменения. Пеpспективы пеpед мультимедиа в медицине. Объемы данных. Мультимедиа в кино. Возможность включения в содержание диска баз данных. Линейный способ представления. Появление самого термина. Понятие мультимедиа.

Без темы

778 презентаций
Урок

Информатика

130 тем
Картинки
900igr.net > Презентации по информатике > Без темы > Chapter 2 –Visual Basic, Controls, and Events