Lesson topic: Practical work with ListBox component
The purpose of the lesson:
Formation of creative work skills in Visual Basic
Objectives of the lesson:
Education: Analysis
of knowledge of object-oriented programming.
Development: Combining the enthusiasm and ability of each student
to learn and increase interest.
Upbringing: Awakening of love and patriotism for the native land and the country
Type of lesson: practical - search lesson
Lesson methods: explanation, performance of practical tasks
Visualization of the lesson: practical task
Lesson equipment: computer
Type of lesson: practical-research lesson
Lesson progress:
Organizational stage
Greeting students, inventory;
Checking the readiness of students for lessons, attention.
Homework check:
1. Name the function of the ListBox control.
2. Name the properties of the ListBox control.
ListBox The list control is created with the
ListBox button and is used to display a list of values. The user can then
select one or more values from the list that will be used in the
program text. Note the most commonly used properties of the list:
ListBox - Displays a list of entries in a form
that consists of several rows.
List - assign a value to a row or define its value
ListIndex - Specifies the row number from the completed list.
ListCount - Specifies the number of rows in the list.
Column - Sets the ability to highlight multiple columns in a list.
Practical task
Task 1. Create a monthly list application.
1) Place the ListBox1, CommandButton controls on the form.
2) Set the following properties for these controls:
Object |
Object name |
Properties |
The essence |
Form |
Form1 |
Caption |
List of months |
Control button |
Command1 |
Caption |
Release |
3) For the Command1 control, select the Click procedure and type the following code:
4) Private Sub Command1_Click ()
List1.AddItem “January”
List1.AddItem “February”
List1.AddItem “March”
List1.AddItem “April”
List1.AddItem “May”
List1.AddItem “Season”
List1.AddItem “July”
List1.AddItem “August”
List1.AddItem “September”
List1.AddItem “October”
List1.AddItem “November”
List1.AddItem “December”
End Sub
5) Launch the application. Click the Print button, a list of months will appear in the window.
Task 2. Creating an application "Disciplines".
Summarizing the lesson
Development of new material, analysis and assessment
of students' knowledge.
Homework:
Preparation of material on "Chronicle of Independence of Kazakhstan".
1991 - Kazakhstan gained independence.
1992 - Kazakhstan became a member of the United Nations.
1993 is the year of transition to the national tenge.
1995 - The current Constitution of the Republic of Kazakhstan was adopted.
1996 - The Independence Monument was opened in Almaty.
1997 - The development strategy
"Kazakhstan-2030" was published.
1998 - Presentation of Astana.
1999 is the Year of Unity and Continuity of Generations.
2000 is the Year of Support of Culture
2001 was declared the 10th anniversary of our independence
2002 - The monument "Astana-Baiterek" was built.
2003 - the year of "Support of the village"
2004 - The state program "Cultural Heritage" was adopted
2005 is the 50th anniversary of Baikonur
2006 is the 20th anniversary of the "December events".
2008 - The monument "Kazakh Eli" was
opened in Astana.
2009 - The National Census of the Republic of
Kazakhstan was conducted.
2010 - Kazakhstan chaired the Organization for
Security and Cooperation in Europe.
2011 is the 20th anniversary of independence
2012 -
2013 -
2014 -
2015 -
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.