.NET Controls. Control Creation

dokumen-dokumen yang mirip
Bab 11 Membuat Field Entri Data Khusus dan Command Button pada Form

32-bit and 64-bit Windows: Frequently asked questions

Modul Praktikum Basis Data 7 Membuat Form Lebih Lanjut

ADDING RTGS BENEFICIARY FOR CHECKER MAKER SYSTEM

Pemrograman Lanjut. Interface

Event Driven. Dalam konsep OOP, informasi umum suatu objek yang dapat diakses programmer adalah:

MODUL 2 SELECTION & LOOPING PADA FORM

MODUL PRAKTIKUM PEMROGRAMAN WEB DENGAN MENGGUNAKAN MACROMEDIA DREAMWEAVER MX 2004

SOLUTIONS DAN PROJECT

1. MENGENAL VISUAL BASIC

Nama Soal Pembagian Ring Road Batas Waktu 1 detik Nama Berkas Ringroad[1..10].out Batas Memori 32 MB Tipe [output only] Sumber Brian Marshal

Visual Studio.NET Integrated Development Environment

Topi Anda akan membutuhkan untuk melakukan langkah-langkah ini adalah 1. A Windows 98 CD 2. A Komputer dengan CD-ROM akses

STMIK DIKTAT SINGKAT MACROMEDIA DREAMWEAVER 8 SEKOLAH TINGGI MANAJEMEN INFORMATIKA DAN KOMPUTER TASIKMALAYA.

Pemrograman Web. Object Oriented Programming in PHP 5

Aplikasi Penyebaran CA ISO20022 Indonesia English

BAB II MICROSOFT VISUAL STUDIO

1. Desktop Microsoft Windows

LAMPIRAN-LAMPIRAN. Kuisioner Analisis User 1. Berapakah umur Anda? a. < 15 b c d e. > Anda pria atau wanita?

Rahasia Cermat & Mahir Menguasai Akuntansi Keuangan Menengah (Indonesian Edition)

BAB I SEKILAS VISUAL STUDIO.NET 2008

PERANCANGAN PENDETEKSI KEDIPAN MATA UNTUK FUNGSI KLIK PADA MOUSE MELALUI KAMERA WEB ABSTRAK

MODUL I PENDAHULUAN. Modul I : Pengenalan Visual Basic 1

12/8/2012 MODUL -10. Apa itu SPSS? Apa yang bisa dilakukan SPSS? Apa kesamaan SPSS dengan Microsoft Office Excel?

MANAJEMEN RISIKO 1 (INDONESIAN EDITION) BY IKATAN BANKIR INDONESIA

BAB V MICROSOFT POWERPOINT

BAB 6 MEMBUAT DAN MEMODIFIKASI LAPORAN (REPORT)

Praktikum 6 SubForm dan Kode VBA

KESASTRAAN MELAYU TIONGHOA DAN KEBANGSAAN INDONESIA: JILID 2 FROM KPG (KEPUSTAKAAN POPULER GRAMEDIA)

PENGENALAN VISUAL BASIC 6.0

Mengidentifikasi karakteristik dan kemampuan dari berbagai layar kontrol Memilih kontrol yang tepat bagi pengguna dan tugasnya 10/25/2011 2

ABSTRACT. Keyword: Algorithm, Depth First Search, Breadth First Search, backtracking, Maze, Rat Race, Web Peta. Universitas Kristen Maranatha

DAFTAR ISI ABSTRAK ABSTRACT KATA PENGANTAR

UPT PERPUSTAKAAN UNIVERSITAS SYIAH KUALA

VISUAL BASIC.NET. 1. Apa Itu VB.NET?

1. Soal Packet Tracer

PEMROGRAMAN DASAR XI TKJ SMK NEGERI 1 KUPANG

Relasi Negara & Agama: Redefinisi Diskursus Konstitusionalisme (Rangkaian Studi IMR)

BAB 2 LANDASAN TEORI. adalah perintah yang dimengerti oleh komputer untuk melakukan tugas-tugas tertentu.

CABLE TV SET TOP BOX. Petunjuk Penggunaan Pengaturan Awal Factory Reset User Guide. Daftar Isi Table of Contents.

Adam Hendra Brata Teknik Informatika FILKOM UB Semester Genap 2015/2016

BAB 5. MEMBUAT DAN MENGGUNAKAN FORM

Objek-Objek Toolbox. Pokok Bahasan: Membuat Program Memakai ComboBox Membuat Program Memakai HScrollBar Membuat Program Memakai TrackBar

365 Menu Sukses MP-ASI selama 1 tahun Menu Pendamping ASI untuk Bayi Usia 7-18 Bulan (Indonesian Edition)

M. Choirul Amri. 2.1 Membuat Project Baru.

Outline. Struktur Data & Algoritme (Data Structures & Algorithms) Pengantar. Definisi. 2-3 Trees

Membangun Menara karakter (Indonesian Edition)

1/5. while and do Loops The remaining types of loops are while and do. As with for loops, while and do loops Praktikum Alpro Modul 3.

BAB II LANDASAN TEORI

Buka Start -> All Programs -> Microsoft Visual Studio - > Microsoft Visual Fox Pro 6.0

Modul Praktikum Ke-1

MODUL I PENGENALAN VISUAL BASIC.NET

LAPORAN PRAKTIKUM BAHASA PEMOGRAMAN VISUAL. Asnita Meydelia C. K OFF E

MODUL 2 PERANCANGAN INTERFACE

1 Pendahuluan. 1. Tujuan: 2 Dasar Teori: Praktikum

DASAR MENGGUNAKAN VISUAL BASIC 6.0

BAB II LANDASAN TEORI

ABSTRAK. Universitas Kristen Maranatha

UML USE CASE DIAGRAM

Cara Save dan Load Konfigurasi Inverter ATV 6xx

ABSTRAK. satu penggunaan teknologi saat ini yang dipakai untuk membantu pekerjaan. dibutuhkan penghubung antara keduanya. Program aplikasi adalah yang

Electrostatics. Wenny Maulina

Tutorial Untuk Membuat Program Database Mahasiswa Teknik Industri Dengan Menggunakan Koneksi VB.NET Dengan Microsoft Access

MODUL PRAKTIKUM 03 VIRTUALIZATION, DHCP, DNS

MODUL I PENGENALAN VISUAL BASIC 6.0. Visual Basic adalah sebuah program yang berfungsi untuk membuat aplikasi berbasis

Teknik Kreatif Menyajikan Presentasi Memukau (Indonesian Edition)

By SRI SISWANTI NIM

ANALISIS CAPAIAN OPTIMASI NILAI SUKU BUNGA BANK SENTRAL INDONESIA: SUATU PENGENALAN METODE BARU DALAM MENGANALISIS 47 VARIABEL EKONOMI UNTU

MODUL PRAKTIKUM CLENT SERVER. Menggunakan Visual Basic 2010 dan MySQL. (Prodi Manajemen Informatika D3)

PRAKTIKUM 10 REPORT LANJUTAN 72 C. TUGAS PENDAHULUAN Buat perancangan report untuk pegawai dan kerja seperti contoh dibawah ini : D. PERCOBAAN Buka da

Keseimbangan Torsi Coulomb

Program Kalkulator Sederhana Menggunakan Java Netbeans

PERANGKAT LUNAK SIMULASI DEADLOCK MENGGUNAKAN ILUSTRASI DINING PHILOSOPHERS PROBLEM

Sesi 15 : Setup & Deployment

KEMAMPUAN MENDENGARKAN LAGU BERBAHASA INGGRIS PADA SISWA KELAS X SMA ISLAMIC CENTRE DEMAK PADA TAHUN AJARAN 2006/2007

MENU. 5.1 Membuat MenuStrip

VISUAL PROGRAMMING 2. bangdanu.wordpress.com. By: Danu Wira Pangestu

Panduan Excel untuk Pelamar Kerja (Indonesian Edition)

ABSTRAK. Kata kunci : C#, Produksi, Desktop. vii

DASAR PEMROGRAMAN VISUAL BASIC

TUJUAN. Memahami Koneksi dan Pemrosesan Basis Data di Java Memahami JDBC Menggunakan MySQL pada program Java

Microsoft Access 2007

BAB I. 1 P e m r o g r a m a n V i s u a l B a s i c - J a t i L e s t a r i

Login Screen. This is the Login Screen. You just type your given user id and password to use the application.

DAFTAR ISI. Halaman. ABSTRAK...i. KATA PENGANTAR...iii. DAFTAR ISI...v. DAFTAR TABEL...viii. DAFTAR GAMBAR...ix. 1.1 Latar Belakang...

6 KERANJANG 7 LANGKAH API (INDONESIAN EDITION) BY LIM TUNG NING

TABEL DATABASE TABEL - KODE BARANG TOKO INFOMART BARANG - NAMA BARANG - HARGA

MENGGUNAKAN SUB FORM. Adi Rachmanto, S.Kom., M.Kom Program Studi Akuntansi FEB UNIKOM

Praktikum 10 Tim Asisten Praktikum Sistem Pakar

PEMROGRAMAN LANJUTAN JAVA. Dasar-Dasar Netbeans

BAB 2 LANDASAN TEORI

MODUL PRAKTIKUM 1 DASAR VISUAL BASIC 6.0

Merancang Project. Form Module Class Module Report. Form 1, Form 2, Minimarket (NamaProject) Gambar 4.1 Flowchart Project Sistem Informasi Minimarket

BAB 3 TOOLBAR CUSTOMIZE DAN CONTROL TOOLBOX

ABSTRAK. Kata kunci : Mobile SQL, Java ME, DBMS, administrasi basisdata

Subnetting & CIDR. Fakultas Rekayasa Industri Institut Teknologi Telkom

ABSTRAK. Universitas Kristen Maranatha

Bab 10 Membuat, Menggunakan dan Memodifikasi Form

Panduan Sistem Informasi Akademik (SINTESIS) A Guide to Using Academics Information System

BAB 2 LANDASAN TEORI. Perangkat lunak adalah perintah ( program komputer ) yang bila dieksekusi

Transkripsi:

.NET Controls Pemrograman Visual (TH22012 ) by Kartika Firdausy 081.328.718.768 kartikaf@indosat.net.id kartika@ee.uad.ac.id blog.uad.ac.id/kartikaf kartikaf.wordpress.com Control Creation A Windows control is a graphical object that allows the user to interact with the computer. The controls are as varied as the needs and goals are. Because there are so many controls for various purposes, their insertion to an application and their configuration are left to the application programmer. The Toolbox is the accessory that provides most of the controls used in an application.

Control Creation By default, the Toolbox is positioned on the left side of the IDE. To change that position, you can drag its title bar away and dock it to another side of the IDE. The Toolbox also uses a default width to show the items on it. If the width is too small or too large for you, you can change it. To do this, position the mouse to its right border and drag left or right. The Sections of the Toolbox When you start a Windows Forms Application, it provides various controls on the Toolbox so you can choose which ones are appropriate for your particular application. Controls can be set by categories based on their function or role. A container is a control whose main purpose is to host other controls. To design it, you pick up objects from the Toolbox and drop them where desired. The Toolbox organizes its items in categories and each category is represented by a button:

The Sections of the Toolbox If the available list of categories is not enough, you can add a new section of your choice. By default, Visual Studio.NET hides some categories because they are judged hardly used. To display these additional sections, you can right-click anywhere in the Toolbox and click Show All Tabs: The Layout of a Category To use an object of a particular category, you can first click its button. After selecting a category, it displays its items. In each category, a particular button called Pointer is selected by default. This simply indicates that no item in the group is currently selected. By default, the items in each category are organized as horizontal wide buttons:

The Layout of a Category Alternatively, you can list the items of a category as buttons of a list view. To do that, you can right-click anywhere in the category and click List View to remove its check box: List Box A list box is a control that maintains a list of objects in a rectangular box. To use the list box, the user clicks one of its items. Depending on the list box, when an item is clicks, it becomes highlighted, indicating that it is selected. There are two types of selection list boxes: one type allows the user to select only one item, another type would allow the user to select more than one item.

List Box To create a list box in MS.Net application, you can use the ListBox class. Creating a list box might not be the most difficult thing to do but when the user has performed a different selection, you will usually need to know what item(s) the user selected. A list box maintains its list of items by their text or their indexes. You can use the same ability to retrieve either the text or the index of the item(s) that was (were) selected. Combo Box A combo box is a control that maintains a list of objects but displays one at a time to the user. A regular combo box is equipped with a rectangular text area and a down-pointing arrow. To use the combo box, the user clicks the arrow, which displays its list of items. Then the user clicks one item from the list and the list retracts like a plastic. The item the user would have selected would display in the text box side of the control. To perform a different selection, the user uses the same process.

Combo Box To create a combo box in MS.Net application, you can use the ComboBox class. Creating a combo box might not be the most difficult thing to do but when the user has performed a different selection, you will usually need to know what item the user selected. A combo box maintains its list of items by their text or their indexes. You can use the same ability to retrieve either the text or the index of the item that was selected. Example ListBox ComboBox

Mengisi List Box Pada window Properties pilih komponen listboxsemesterganjil, klik dobel pada isian properti Items (atau klik pada tombol... di belakang nilai properti itu). Akan muncul jendela String Collection Editor this->listboxsemesterganjil->items->addrange(gcnew cli::array< System::Object^ >(6) {L"Bahasa Pemrograman", L"Pemrograman Berbasis Web", L"Robotika", L"Sistem Basis Data", L"Teknik Pengolahan Citra", L"Teknik Kendali"}); Mengisi Combo Box Pada window Properties pilih komponen comboboxsemestergenap, klik dobel pada isian properti Items (atau klik pada tombol... di belakang nilai properti itu). Akan muncul jendela String Collection Editor, isikan: Kecerdasan Buatan Mikroprosesor Sekuriti Teknologi Informasi Sistem Kendali Lanjut Sistem Operasi this->comboboxsemestergenap->items->addrange(gcnew cli::array< System::Object^ >(5) {L"Kecerdasan Buatan", L"Mikroprosesor", L"Sekuriti Teknologi Informasi", L"Sistem Kendali Lanjut", L"Sistem Operasi"});

Event handler private: System::Void buttonpilih_click(system::object^ sender, System::EventArgs^ e) { if ((listboxsemesterganjil->selectedindex == -1) (comboboxsemestergenap->text->equals(""))) { MessageBox::Show("Pilih dulu mata kuliahnya"); } else { MessageBox::Show("Anda memilih\n Semester Ganjil: "+ listboxsemesterganjil->items[listboxsemesterganjil->selectedindex] + "\n Semester Genap: "+ comboboxsemestergenap->text); } } Contoh hasil eksekusi

Tugas