Министерство образования Республики Таджикистан
Таджикский Технический Университет им. ак. М. С. Осими
кафедра АСОИиУ
Лабораторная работа №1
«Использование элементов управления: Label, TextBox, Image,
OptionButton, ListBox, SpinButton, ComboBox, CommandButton»
Выполнил:
Приняла:
-Душанбе 2009-
Программа
«Labs»
Private Sub cmb_Click()
Select Case cmb.ListIndex
Case 0
Label4.Font = "Times New Roman"
Case 1
Label4.Font = "Tahoma"
Case 2 Выбор шрифта с помощью элемента ComboBox
Label4.Font = "Arial"
Case 3
Label4.Font = "MS Sans Serif"
Case 4
Label4.Font = "Lucida Console"
End Select
End Sub
Private Sub Command2_Click()
rez.ClearОчистка содержимого ListBox
End Sub
Private Sub Command1_Click()
If op1.Value = True Then
rez.AddItem (op1.Caption)
ElseIf op2.Value = True Then
rez.AddItem (op2.Caption)
ElseIf op3.Value = True Then
rez.AddItem (op3.Caption)
ElseIfop4.Value = TrueThenДобавление значений в элемент ListBox
rez.AddItem (op4.Caption)
ElseIf op5.Value = True Then
rez.AddItem (op5.Caption)
Else
End If
End Sub
Private Sub load1_Click()
cd.ShowOpen
Image1.Picture = VB.LoadPicture(cd.FileName)
Image1.Width = Image1.Picture.Width / Val(ms.Text) Загрузкакартинкивэлемент Image
Image1.Height = Image1.Picture.Height / Val(ms.Text)
End Sub
Private Sub sp_Change()
If sp.Value < 1 Then
sp.Value = 1
ExitSub
ElseКонтроль за изменением значения Масштаба
End If
Text1.Text = sp.Value
End Sub
Private Sub ms_Change()
On Error Resume Next
mage1.Picture = VB.LoadPicture(cd.FileName) Изменениемасштабакартинки
Image1.Width = Image1.Picture.Width / ms.Text
Image1.Height = Image1.Picture.Height / ms.Text
End Sub
Private Sub Form_Load()
Label4.Font = "Times New Roman"
Frame1.Visible = True
Frame3.Visible = False
Frame2.Visible = False
cmb.AddItem ("Times New Roman")
cmb.AddItem ("Tahoma") Инициализацияформы
cmb.AddItem ("Arial")
cmb.AddItem ("MS Sans Serif")
cmb.AddItem ("Lucida Console")
sp.Value = 6
cmb.Text = cmb.List(0)
ms.Text = "1"
End Sub
Private Sub SpinButton1_Change()
ms.Text = SpinButton1.Value Совместнаяработа SpinButton и TextBox
End Sub
Private Sub Text1_Change()
On Error Resume Next
sp.Value = Text1.Text Изменениемасштабанадписи (Label)
Label4.FontSize = Text1.Text
End Sub
Private Sub Text2_Change()
Label4.Caption = Text2.Text Изменениетекстаэлемента Label
End Sub
Private Sub mp_Change()
Select Case mp.Value
Case 0
Frame1.Visible = True
Frame2.Visible = False
Frame3.Visible = False
Case 1
Frame1.Visible = FalseКонтроль переключения вкладок
Frame2.Visible = True
Frame3.Visible = False
Case 2
Frame2.Visible = False
Frame1.Visible = False
Frame3.Visible = True
End Select
End Sub
Другие работы по теме:
Расчет финансового левериджа
Министерство торговли Российской Федерации Московский государственный университет коммерции Краснодарский филиал Факультет УФФ Курс 1-ый Группа 0212
Достопримечательности Бразилии
Text Text Ссылки (links): zateevo/userfiles/image/Strani/Brazil/brazil002.jpgbrazil/image.php?static_image_id=3721brazilssian-club/Image/Brazil/salvador_zaliv.jpgbrazil/image.php?static_image_id=1067i.bigmir/img/prikol/images/large/5/5/105555_148105.jp
Почта
Разработка программы автоматизации учёта работы почты. Регистрация отправленной корреспонденции, печать квитанции об оплате. Регистрация полученной корреспонденции, ее выдача. Печать извещений для получателей. Формирование сопроводительной ведомости.
Обработка одномерных массивов в среде программирования Lazarus
Форма программы для ввода и вывода массива в программной среде Lazarus. Характеристика главных недостатков Lazarus. Цикл для пропуска пробелов между словами. Результат обработки текстового редактора memo.text. Листинг и экранные формы заданной программы.
Разработка приложения средствами VBA
Разработка графического интерфейса проекта (панель инструментов имеет 6 кнопок). Процедуры разделов программы: документа ThisDocument, программного модуля Module1 и пользовательских форм UserForm1, UserForm2 и Деление_амёбы. Тестирование программы.
Расположение элементов в матрице
Расположение в матрице элементов в порядке их возрастания в указанной последовательности. Составление программы на алгоритмическом языке, выполняющей указанные преобразования с матрицами. Выведение исходных и преобразованных матриц, занесение их в файл.
Игра "Виселица"
Разработка программы "Виселица" с использованием программной среды Visual Basic и средств объектно-ориентированного программирования: программные требования, описание алгоритма, блок-схема программы и дополнительной процедуры. Листинг программы.
База данных видеокарт
Отличительные особенности программы для создания каталога видеокарт на Visual Basic с ее занесением, изменением и удалением. Расчет максимальной и минимальной стоимости видеоносителя в порядке увеличения его стоимости и выбор параметров сортировки.
Успеваемость студентов
Разработка информационной системы анализа успеваемости студентов. Особенности режима просмотра объектов с помощью редактора Visual Basic for Application. Виды диалоговых окон и основных элементов управления. Формирование диаграммы успеваемости группы.
Обзор Палитры Delphi
В данной работе дается обзор стандартных и дополнительных компонентов из Палитры Компонент Delphi.
Игра Кто хочет стать миллионером
Кафедра системного анализа и управления Курсовая работа По технологии программирования «Игра ‘Кто хочет стать миллионером?’» Дубна, 2003 Оглавление
Создание и заполнение баз данных
Содержание. Введение…………………………………………………………………………. .2 1.Создание и заполнение базы данных…………………………………………..3 1.1.Создание БД… ……………………………………………………..
Проектирование в среде VBA
Министерство науки и образования Украины Харьковский национальный экономический университет Кафедра информатики и компьютерных технологий Индивидуальное научно-исследовательское задание
Среда разработки VBA
КУРС: Информатика ТЕМА: «Среда разработки VBA» 1. «Алгоритмы. Базовые структуры» Алгоритмы Алгоритм – это точное и понятное описание последовательности действий над заданными объектами, позволяющее получить конечный результат.
Image Of God Essay Research Paper Then
Image Of God Essay, Research Paper Then God said, “”Let Us make man in Our image, according to Our likeness; and let them have dominion over the fish of the sea, over the birds of the sky, and over the cattle and over every creeping thing that creeps on the earth. So God created man in His own image; in the image of God He created him; male and female He created them.
Perpespectives On An Orange Essay Research Paper
When people think of oranges they see beautiful pieces of fruit, sweet and filled to its rind with a gratifying nectar that sprays into your mouth with the first bite. It?s distinct and citrus fragrance can be smelled from across the room once its soft rind has been cut. The orange?s smell is juicy and sweet, and can be noticed with little effort once the orange?s peel has been sliced.
Social Problems Essay Research Paper Definition of
Social Problems Essay, Research Paper Definition of Family There are many issues and concepts that involve the word ?family?. Every person has a certain image of what a family is supposed to be. Different cultures and people believe different things. According to the Merriam-Webster?s Collegiate Dictionary the word ?family? is defined as a group of persons of common ancestry.
Sprite
: “Image Is Everything? Essay, Research Paper “Image is Everything” “Thirst is Everything, Image is Nothing” we have all seen this slogan slapped on to every one of Sprite’s products for last couple of months. But what does it mean? Does it mean that someone at a Pepsi convention should order a Sprite, a Coke product, just cause they like the taste? Of course not, cause if they did they would get kicked out at the very least.
Marketing Of Ag Products Essay Research Paper
After being left with 2 million dollars from my long lost great aunt, I was provided with the capital necessary to begin to develop and market my own product. Having been raised on a small dairy farm in western New York, the only logical product to me was one having to do with the dairy industry. In an attempt to make my product unique, I have decided to target the organic foods market.
Indie Labels Vs Major Record Essay Research
Paper Indie VS. Major A good thing to remember, there are (of course) pros and cons to both major and indie labels, and questions you should consider before signing any kind of deal. Before signing any kind of contract, consult an attorney. KNOW WHAT YOU ARE SIGNING. This is especially true when signing a deal with a major label.
Literary Techniques Essay Research Paper 1 ImageryImagery
Literary Techniques Essay, Research Paper 1. Imagery Imagery is one of the main techniques used through out Waiting for Godot. The first image that appears is a tree. This simple tree in the middle of a desolate setting alludes to many symbols. To start, the tree represents the Tree of Knowledge, for it creates a reverse Garden of Eden.
Marilyn Monroe
– Just An Ordinary Goddess Essay, Research Paper Just an Ordinary ?Goddess? Hollywood created the image of Marilyn Monroe as a stereotypical sex bomb and dumb blonde, which captivated the eyes and hearts of many men. Sharon Olds breaks down Monroe?s ?goddess? label and identifies Marilyn Monroe with qualities that everyday people actually have.
What Is An Imgage Essay Research Paper
What is an image? What composes an image? In the following paragraphs, we are going to talk about the definition of an image and discuss how the particular image chosen employs elements such as composition, colour, camera angles, frames and emotional impact.
Popular Music Isn
’t Cool Essay, Research Paper Pop Culture Isn’t Cool From my point of view, Great pop music is an oxymoron. These days’ people look to the media for the answer to everything, including what music to listen to, or in most cases what music to play in the back round. I’m not saying all pop fans are closed minded to the point where they listen to the music genre that is currently trendy in hopes of it helping them position themselves socially.
Microscopes And Electron Micro Essay Research Paper
Microscopes and Electron Microscopy There are many different types of microscopes and each of them works in different ways and are used to magnify different things. Some examples of these are light microscopes, transmission electron microscopes and scanning electron microscopes.