tag:blogger.com,1999:blog-88294577398711361742024-03-14T04:18:47.070+07:00Belajar Visual Basic 6.0Blog ini berisi tentang Belajar Visual Basic 6.0. Membahas dari yang paling dasar sampai ke program-program sederhana yang dapat langsung diapplikasikan sesuai kebutuhan.
Kritik dan saran untuk setiap postingan dan juga untuk kemajuan blog ini sangat saya harapkan dari rekan-rekan yang membaca blog iniDedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-8829457739871136174.post-79203619212650548002008-11-17T02:29:00.018+07:002008-11-19T02:22:14.893+07:00Membuat Form dengan VBA di ExcelBagi anda pengguna Excel tentu tidak jauh dari mengisi data ke dalam sheet pada kolom dan baris. Untuk mempermudah pengisian apalagi jika datanya banyak alangkah lebih baik menggunakan form. Menggunakan form akan lebih simple karena anda tidak harus selalu kembali ke kolom awal jika baris pada kolom terakhir sudah selesai di input. Keuntungan lain anda diingatkan jika belum mengisi data.<br /><div class="fullpost"><br /><span style="font-weight: bold;">Langkah Membuat Form</span><br /><br />- Buka aplikasi Excel pada MS Office (disini saya menggunakan Excel 2007)<br />- Buat tabel seperti gambar berikut:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYYz0m4cuN-oNsts5w4KFXvEXhWcfLumWT0OIuth1s6lyGxV1IAB4SdTtevXf0sLJiPq42ywHEB8eQTlMzCKN8W-Pz3YNYVzHhyTDdCkYzCA8Sa6KN16rbrY_z4AxNZqgateJDR6IBwY8/s1600-h/New+Picture.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 65px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYYz0m4cuN-oNsts5w4KFXvEXhWcfLumWT0OIuth1s6lyGxV1IAB4SdTtevXf0sLJiPq42ywHEB8eQTlMzCKN8W-Pz3YNYVzHhyTDdCkYzCA8Sa6KN16rbrY_z4AxNZqgateJDR6IBwY8/s320/New+Picture.jpg" alt="" id="BLOGGER_PHOTO_ID_5269350808691485362" border="0" /></a><br />- Ganti nama Sheet1 menjadi INPUTDATA<br />- Klik Developer pada Menubar<br />- Klik Visual Basic<br />- Klik Insert New Form<br />- Buat pada form 10 buah label, 9 buah TextBox dan 2 buah CommandButton<br />- Atur posisi dan properties kontrol sehingga menjadi seperti gambar berikut<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4zOd-7tjV5fD85MeEhjYIu2ommNK7Z4csvHQmgWQOjkzq0HkPssoTdanNujPFU1FHe2q4T5h0Nx3jIio5Gc64eZfex7v0MslbNU1J9WZ7FWU3tcnojEqrPUQ_GLebYaWNq5xdtXFS2lA/s1600-h/New+Picture.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 254px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4zOd-7tjV5fD85MeEhjYIu2ommNK7Z4csvHQmgWQOjkzq0HkPssoTdanNujPFU1FHe2q4T5h0Nx3jIio5Gc64eZfex7v0MslbNU1J9WZ7FWU3tcnojEqrPUQ_GLebYaWNq5xdtXFS2lA/s320/New+Picture.jpg" alt="" id="BLOGGER_PHOTO_ID_5269358925332592962" border="0" /></a><br />- Untuk label Nama properti TextBox beri nama: TxNama<br />- Untuk label NIS properti TextBox beri nama: TxNIS<br />- Untuk label Matematika properti TextBox beri nama: TxMatematika<br />- Untuk label PMP properti TextBox beri nama: TxPMP<br />- Untuk label IPS properti TextBox beri nama: TxIPS<br />- Untuk label IPA properti TextBox beri nama: TxIPA<br />- Untuk label B.Indonesia properti TextBox beri nama: TxBind<br />- Untuk label B.Inggris properti TextBox beri nama: TxBing<br />- Untuk label Orkes properti TextBox beri nama: TxOrkes<br />- Untuk label CommandButton beri nama SIMPAN dan KELUAR<br /><br /><span style="font-style: italic;">Udah belum...??? Jika sudah mari kita teruskan</span><br /><br />- Klik ganda pada CommandButton SIMPAN<br />- Lalu ketikkan kode berikut:<br /><img src="file:///C:/DOCUME%7E1/user/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /><img src="file:///C:/DOCUME%7E1/user/LOCALS%7E1/Temp/moz-screenshot-1.jpg" alt="" /><br /><p style="color: rgb(0, 0, 0); text-align: justify;" class="alert"> <span style="color: rgb(153, 51, 0); font-weight: bold;">Private Sub SIMPAN_Click()</span><br /><span style="color: rgb(153, 51, 0);">TxNama.SetFocus</span> ---><span style="color: rgb(51, 102, 255);font-size:85%;" >Untuk menempatkan kursor awalnya selalu di TextBox Nama</span><br /><span style="color: rgb(153, 51, 0);">If TxNama.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);">MsgBox "Anda Belum Mengisi Nama", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);">Exit Sub</span><br /><span style="color: rgb(153, 51, 0);">End If</span><br /><span style="color: rgb(153, 51, 0);">If TxNIS.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi NIS", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);"> Exit Sub</span><br /><span style="color: rgb(153, 51, 0);"> End If</span><br /><span style="color: rgb(153, 51, 0);">If TxMatematika.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi Nilai Matematika", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);"> Exit Sub</span><br /><span style="color: rgb(153, 51, 0);"> End If</span><br /><span style="color: rgb(153, 51, 0);">If TxPMP.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi Nilai PMP", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);"> Exit Sub</span><br /><span style="color: rgb(153, 51, 0);"> End If</span><br /><span style="color: rgb(153, 51, 0);">If TxIPS.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi Nilai IPS", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);"> Exit Sub</span><br /><span style="color: rgb(153, 51, 0);"> End If</span><br /><span style="color: rgb(153, 51, 0);">If TxIPA.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi Nilai IPA", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);"> Exit Sub</span><br /><span style="color: rgb(153, 51, 0);"> End If</span><br /><span style="color: rgb(153, 51, 0);">If TxBind.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi Nilai B.Indonesia", vbInformation, "PESAN"</span><br /><span style="color: rgb(153, 51, 0);"> Exit Sub</span><br /><span style="color: rgb(153, 51, 0);"> End If</span><br /><span style="color: rgb(153, 51, 0);">If TxBing.Text = "" Then</span><br /><span style="color: rgb(153, 51, 0);"> MsgBox "Anda Belum Mengisi Nilai B.Inggris", vbInformation, "PESAN"</span><br /><span style="color: rgb(0, 0, 0);"> Exit Sub</span><br /><span style="color: rgb(0, 0, 0);"> End If</span><br /><span style="color: rgb(0, 0, 0);">If TxOrkes.Text = "" Then</span><br /><span style="color: rgb(0, 0, 0);"> MsgBox "Anda Belum Mengisi Nilai Orkes", vbInformation, "PESAN"</span><br /><span style="color: rgb(0, 0, 0);"> Exit Sub</span><br /><span style="color: rgb(0, 0, 0);"> End If</span><br /><span style="color: rgb(0, 0, 0);">ActiveWorkbook.Sheets("INPUTDATA").Activate</span><br /><span style="color: rgb(0, 0, 0);">Range("B2").Select</span><br /><span style="color: rgb(0, 0, 0);">Do</span><br /><span style="color: rgb(0, 0, 0);">If IsEmpty(ActiveCell) = False Then</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(1, 0).Select</span><br /><span style="color: rgb(0, 0, 0);">End If</span><br /><span style="color: rgb(0, 0, 0);">Loop Until IsEmpty(ActiveCell) = True</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Value = TxNama.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 1) = TxNIS.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 2) = TxMatematika.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 3) = TxPMP.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 4) = TxIPS.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 5) = TxIPA.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 6) = TxBind.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 7) = TxBing.Value</span><br /><span style="color: rgb(0, 0, 0);">ActiveCell.Offset(0, 8) = TxOrkes.Value</span><br /><span style="color: rgb(0, 0, 0);">Call HAPUS</span> ---> <span style="color: rgb(51, 102, 255);font-size:85%;" >Fungsinya untuk mengosongkan form pada saat SIMPAN diklik</span><br /><span style="color: rgb(0, 0, 0);">Exit Sub</span><br /><span style="color: rgb(0, 0, 0); font-weight: bold;">End Sub</span></p><br /><span style="color: rgb(0, 0, 0);"></span><br /><p class="alert"><span style="font-weight: bold; color: rgb(0, 0, 0);">Private Sub HAPUS()</span><br /><span style="color: rgb(0, 0, 0);">TxNama.Text = ""</span><br /><span style="color: rgb(0, 0, 0);">TxNIS.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxMatematika.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxPMP.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxIPS.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxIPA.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxBind.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxBing.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="color: rgb(0, 0, 0);">TxOrkes.</span><span style="color: rgb(0, 0, 0);">Text</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">= ""</span><br /><span style="font-weight: bold; color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">End Sub</span><p></p></span></p><p style="color: rgb(0, 0, 0);"></p>- Kemudian klik ganda pada CommandButton KELUAR<br />- Lalu ketikkan kode berikut:<p class="alert"> <span style="font-weight: bold;"><br /><br /></span>Private Sub KELUAR_Click()<span style="font-weight: bold;"><br /></span><span style="color: rgb(102, 0, 0);">End --> </span><span style="color: rgb(102, 0, 0);font-size:85%;" >Untuk keluar dari program</span><span style="font-weight: bold;"><br /></span><span>End Sub</p></span><p class="alert"><span style="color: rgb(51, 102, 255); font-weight: bold;"><span style="color: rgb(102, 0, 0);"></span><p></p>- Jalankan program dengan meng-klik Run-->Run Sub/UserForm atau tekan F5<br /><br /><div style="text-align: justify;">Isi data data pada form, untuk pindah ke TextBox berikutnya tekan Enter. Setelah diisi lalu klik SIMPAN maka otomatis data akan pindah ke sheet Excel dan form akan kosong siap diisi kembali. Coba juga kosongkan salah satu, maka akan muncul pesan untuk mengingatkan yang belum diisi tadi.<br />Tak percaya?? Buktiin aja Ndiri....<br /></div><br /><br /><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-28097127662239671922008-11-12T22:06:00.009+07:002008-11-13T00:26:36.441+07:00Mengenal Kontrol Option Button<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFCu82adn7dbsclHX1cO4UeewD5xewyUXgkGRURJjhMaNspJC7yAmb8WfaoexXTP68gCVXMrmcvC1c5WHqXakyomMBLshK-x5CayGn3WxwalFObroGmtRNCEIgcWS4g3oRhX3SuSUM05w/s1600-h/option+button.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 70px; height: 63px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFCu82adn7dbsclHX1cO4UeewD5xewyUXgkGRURJjhMaNspJC7yAmb8WfaoexXTP68gCVXMrmcvC1c5WHqXakyomMBLshK-x5CayGn3WxwalFObroGmtRNCEIgcWS4g3oRhX3SuSUM05w/s200/option+button.jpg" alt="" id="BLOGGER_PHOTO_ID_5267791483043195682" border="0" /></a>Fungsi utama dari kontrol ini adalah untuk memilih salah satu dari beberapa pilihan yang ada pada suatu program yang kita buat. Kontrol ini tidak bisa memilih lebih dari satu pilihan.<br /><div class="fullpost"><br /><br /><div style="text-align: left;"><span style="font-weight: bold; color: rgb(51, 102, 255);">1. Membuat Option Button</span><br /></div><ul><li>Buka Visual Basic 6.0, kemudian klik StandardExe lalu klik Open</li><li>Klik ganda kontrol Option Button pada ToolBox, maka di layar form akan muncul seperti gambar berikut:</li></ul><ul><li><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5VVpoQnLajwllh8WyfD43xe-45qIZBRLo9IJzl7Clt922SuMNwVJ2-hC7EL4_gfKxEify0KSOKffCru7ip9NPKLauAINSaur5ylx354WPhGXkIaixTo9q6wterLVpyu9jY1OWinSbRQs/s1600-h/New+Picture+%288%29.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 300px; height: 199px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5VVpoQnLajwllh8WyfD43xe-45qIZBRLo9IJzl7Clt922SuMNwVJ2-hC7EL4_gfKxEify0KSOKffCru7ip9NPKLauAINSaur5ylx354WPhGXkIaixTo9q6wterLVpyu9jY1OWinSbRQs/s320/New+Picture+%288%29.jpg" alt="" id="BLOGGER_PHOTO_ID_5267794140416099058" border="0" /></a>Untuk memberi nama item pilihan, ketik di Caption pada properti Option Button</li></ul><span style="font-weight: bold; color: rgb(51, 102, 255);">2. Properti Option Button</span><br /><br /><table style="border-collapse: collapse; width: 503px; height: 613px;" border="6" cellpadding="2" cellspacing="0"><col style="width: 87pt;" width="116"> <col style="width: 260pt;" width="347"> <tbody><tr style="height: 15.75pt;" height="21"> <td class="xl70" style="height: 15.75pt; width: 87pt; text-align: center; font-weight: bold;font-family:lucida grande;" width="116" height="21"><span style="font-size:130%;">Properti</span></td> <td class="xl71" style="width: 260pt; text-align: center; font-weight: bold;font-family:lucida grande;" width="347"><span style="font-size:130%;">Keterangan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="height: 15.75pt; font-family: arial;" height="21">Name</td> <td style="font-family: arial;" class="xl64">Nama dari kontrol OptionButton yang dibuat</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl77" style="height: 45.75pt; font-family: arial;" height="61">Alignment</td> <td style="font-family: arial;" class="xl65">Menentukan letak kontrol Option Button<br />0 - Left Justify, berada di sebelah kiri teks<br />1- Right Justify, berada di sebelah kanan teks<br /></td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="border-bottom: 1pt solid black; height: 45.75pt; font-family: arial;" height="61">Appereance</td> <td style="font-family: arial;" class="xl66">Menentukan warna dan efek Option Button<br />0 - Flat untuk tampilan datar<br />1 - 3D untuk tampilan 3 dimensi<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="border-top: medium none; height: 15.75pt; font-family: arial;" height="21">BackColor</td> <td class="xl64" style="border-top: medium none; font-family: arial;">Menentukan warna background Option Button</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl68" style="height: 15pt; font-family: arial;" height="20">Caption</td> <td style="font-family: arial;" class="xl65">Teks yang tampil dalam tombol</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl76" style="height: 30.75pt; font-family: arial;" height="41">DisabledPicture</td> <td class="xl65" style="border-left: medium none; font-family: arial;">Menampilkan gambar saat tombol perintah pada posisi disable</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl74" style="height: 47.25pt; font-family: arial;" height="63">DownPicture</td> <td class="xl64" style="border-left: medium none; font-family: arial;">Menampilkan gambar pada saat tombol tersebut di klik. Kita dapat memberikan gambar yang berbeda pada tombol, yaitu pada saat tidak menekan dan saat menekan tombol</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; font-family: arial;" height="21">DragIcon</td> <td style="font-family: arial;" class="xl65">Menampilkan Icon pada saat tombol di drag</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="height: 15.75pt; font-family: arial;" height="21">Enabled</td> <td style="font-family: arial;" class="xl64">Menentukan aktif/tidak kontrol Option Button</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl77" style="height: 30.75pt; font-family: arial;" height="41">Font</td> <td style="font-family: arial;" class="xl65">Menentukan jenis dan ukuran huruf. Juga untuk membuat huruf tebal atau miring</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="height: 15.75pt; font-family: arial;" height="21">Height</td> <td style="font-family: arial;" class="xl64">Menentukan tinggi tombol Option Button</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="border-top: medium none; height: 15.75pt; font-family: arial;" height="21">Left</td> <td class="xl64" style="border-top: medium none; font-family: arial;">Menentukan jarak Option Button dari sisi kiri form</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl73" style="border-top: medium none; height: 15.75pt; font-family: arial;" height="21">MouseIcon</td> <td class="xl69" style="border-top: medium none; font-family: arial;">Menentukan Icon mouse</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="border-top: medium none; border-bottom: 1pt solid black; height: 30.75pt; font-family: arial;" height="41">MousePointer</td> <td class="xl66" style="border-top: medium none;font-family:lucida grande;"><span style="font-family:arial;">Menentukan bentuk kursor mouse pada saat diletakkan di atas TextBox</span><span style=""> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; font-family: arial;" height="21">Top</td> <td style="font-family: arial;" class="xl65">Menentukan jarak Option Button dari sisi atas form</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="height: 15.75pt; font-family: arial;" height="21">Visible</td> <td style="font-family: arial;" class="xl64">Menentukan tampil/tidaknya Option Button di aplikasi</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl63" style="border-top: medium none; height: 15.75pt; font-family: arial;" height="21">Width</td> <td class="xl64" style="border-top: medium none; font-family: arial;">Menentukan lebar Option Button</td> </tr> </tbody></table><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">3. Contoh Penggunaan Option Button</span><br /><ul><li>Buka form baru</li><li>Buat satu buah kontrol label</li><li>Buat empat buat kontrol OptionButton</li><li>Atur posisinya, contohnya seperti gambar berikut</li></ul> <ul><li><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQxKA9pM9sbhkhqU1NDZogAJ4rksxv9KVDSTo0PeK1nSnXyZjo1M-T1lyYbh8iilUT_rlDnAHLt9W4oi6NUSVzTMnddpEICq_hazgncMxHBzQF-VOcxQFN_Y1yRkr5wEJApcNzSWjlicY/s1600-h/New+Picture+%289%29.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 313px; height: 279px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQxKA9pM9sbhkhqU1NDZogAJ4rksxv9KVDSTo0PeK1nSnXyZjo1M-T1lyYbh8iilUT_rlDnAHLt9W4oi6NUSVzTMnddpEICq_hazgncMxHBzQF-VOcxQFN_Y1yRkr5wEJApcNzSWjlicY/s320/New+Picture+%289%29.jpg" alt="" id="BLOGGER_PHOTO_ID_5267807984192338034" border="0" /></a>Kemudian atur properti dari kontrol-kontrol tersebut</li></ul> <table style="border-collapse: collapse; width: 290pt;" border="6" cellpadding="2" cellspacing="0" width="385"><col style="width: 65pt;" width="86"> <col style="width: 68pt;" width="90"> <col style="width: 157pt;" width="209"> <tbody><tr style="height: 15.75pt;" height="21"> <td class="xl67" style="height: 15.75pt; width: 65pt; font-weight: bold; text-align: center;font-family:arial;" width="86" height="21"><span style="font-size:100%;">Kontrol</span></td> <td class="xl66" style="width: 68pt; font-weight: bold; text-align: center;font-family:arial;" width="90"><span style="font-size:100%;">Properti</span></td> <td class="xl68" style="width: 157pt; font-weight: bold; text-align: center;font-family:arial;" width="209"><span style="font-size:100%;">Nilai</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl71" style="height: 31.5pt; font-family: arial;" height="42">Form1</td> <td class="xl69" face="arial" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl69" style="border-left: medium none; font-family: arial;">Form1</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Caption</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Tokoh Sensasional 2008</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl71" style="border-top: medium none; height: 63pt; font-family: arial;" height="84">Label1</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Name</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Lb Judul</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">AutoSize</td> <td class="xl70" style="border-top: medium none; border-left: medium none; font-family: arial;">True</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Caption</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Tokoh Sensasional 2008</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Font</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">MS Sans<span style=""> </span>Serif / size 14</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="3" class="xl72" style="border-top: medium none; height: 47.25pt; width: 65pt; font-family: arial;" width="86" height="63">Option1</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Name</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Opt1</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Alignment</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Caption</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Ryan</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="3" class="xl72" style="border-top: medium none; height: 47.25pt; width: 65pt; font-family: arial;" width="86" height="63">Option2</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Name</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Opt2</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Alignment</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Caption</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Syech Puji</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="3" class="xl72" style="border-top: medium none; height: 47.25pt; width: 65pt; font-family: arial;" width="86" height="63">Option3</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Name</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Opt3</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Alignment</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Caption</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Amrozi Cs</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="3" class="xl72" style="border-top: medium none; height: 47.25pt; width: 65pt; font-family: arial;" width="86" height="63">Option4</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Name</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Opt4</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Alignment</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt; font-family: arial;" height="21">Caption</td> <td class="xl69" style="border-top: medium none; border-left: medium none; font-family: arial;">Habib Rizieq</td> </tr> </tbody></table><ul><li>Maka hasil setelah pengaturan properti, hasilnya akan seperti gambar berikut;<br /></li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyS8qgR2_9H95by3KsUaP-qJpY33ZhyBrRoZNQdrNc2QMpfghN0x0JuyiGjST1SKyZRVl2teOJS2AT4IE7cp6jICRjwO5_kP06UKb1v0Zw7tEgGAoYSzdawvWN-l7grXxoMspcAjR4nYY/s1600-h/New+Picture+%2810%29+copy.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 311px; height: 281px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyS8qgR2_9H95by3KsUaP-qJpY33ZhyBrRoZNQdrNc2QMpfghN0x0JuyiGjST1SKyZRVl2teOJS2AT4IE7cp6jICRjwO5_kP06UKb1v0Zw7tEgGAoYSzdawvWN-l7grXxoMspcAjR4nYY/s320/New+Picture+%2810%29+copy.jpg" alt="" id="BLOGGER_PHOTO_ID_5267813760330514434" border="0" /></a><br /><ul><li>Klik <span style="font-weight: bold;">Run</span> pada Menubar selanjutnya klik <span style="font-weight: bold;">Start</span> atau bisa dengan tekan F5 saja</li><li>Maka hasil akhir dari aplikasi ini adalah seperti gambar berikut</li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixIGXm25_kA4lUhPIuG2i8ZyXxyhhTDobXKphthDTFeV28sEGSSwk1q7FSBWYB6d0nPa-CIri274z7wfojgBfH6OufWQDUl5ZHcnnr3JUVyNb9tTanjGd1X57LpE7SBzmj9qCeqUPWer4/s1600-h/opt.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 312px; height: 282px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixIGXm25_kA4lUhPIuG2i8ZyXxyhhTDobXKphthDTFeV28sEGSSwk1q7FSBWYB6d0nPa-CIri274z7wfojgBfH6OufWQDUl5ZHcnnr3JUVyNb9tTanjGd1X57LpE7SBzmj9qCeqUPWer4/s320/opt.jpg" alt="" id="BLOGGER_PHOTO_ID_5267816568753940002" border="0" /></a>Maka anda tinggal mengarahkan kursor ke salah satu pilihan anda, lalu klik kiri di Option Button yang anda pilih.<br /><span style="font-style: italic;">Tapi ngomong-ngomong anda pilih siap yach...???</span><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-82033576772251228372008-11-09T23:18:00.022+07:002008-11-13T22:56:49.547+07:00Mengenal Kontrol CommandButton<span style=";font-family:georgia;font-size:100%;" ><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWNrdLzx2noxtGdvD7FYGnHhzmSxcTnI88IV4MbiGhUE7oKyYZYW5OTW7KcGlBugA6swHOqXLn5YB4QlvqLDveN2_QZVI609KvXa4XR7AMmEePr4vZEMr6JL3h-8xCCcBGrmNx0ClOG0A/s1600-h/command+button.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 70px; height: 62px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWNrdLzx2noxtGdvD7FYGnHhzmSxcTnI88IV4MbiGhUE7oKyYZYW5OTW7KcGlBugA6swHOqXLn5YB4QlvqLDveN2_QZVI609KvXa4XR7AMmEePr4vZEMr6JL3h-8xCCcBGrmNx0ClOG0A/s200/command+button.jpg" alt="" id="BLOGGER_PHOTO_ID_5266705572918285938" border="0" /></a>Fungsi utama tombol ini adalah untuk menjalankan atau mengeksekusi suatu kode program. Bentuk fisiknya adalah tombol. Tombol-tombol ini antara lain tombol Save, Exit, OK, Clear dan lain sebagainya<br /></span><div style="text-align: justify;font-family:georgia;" class="fullpost"><span style="font-size:100%;"><br /></span><span style="font-weight: bold; color: rgb(51, 102, 255);font-size:100%;" >1. Membuat CommandButton</span><span style="font-size:100%;"><br /><br />- Buka Visual Basic 6.0, kemudian klik StandardExe lalu klik Open<br /></span><span style="color: rgb(51, 102, 255);font-size:100%;" ><span style="color: rgb(0, 0, 0);">- Klik ganda CommandButton pada ToolBox, maka hasilnya akan seperti gambar berikut</span></span><span style="font-size:100%;"><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicz3Ji9KnZ9ylMObN-EYOHLsy0TES8rP5ODg1jQYGek_0y1gXS-yqybGYsDYvTqKXSkFHzN-VnmJcdnjMllW7tCjU5qX0zkzx7zSl8WvVontdA3869ZlhW4hHFgMz5NE-6rrEJY-jWAJ4/s1600-h/command+button.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 240px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicz3Ji9KnZ9ylMObN-EYOHLsy0TES8rP5ODg1jQYGek_0y1gXS-yqybGYsDYvTqKXSkFHzN-VnmJcdnjMllW7tCjU5qX0zkzx7zSl8WvVontdA3869ZlhW4hHFgMz5NE-6rrEJY-jWAJ4/s320/command+button.jpg" alt="" id="BLOGGER_PHOTO_ID_5268153686367267522" border="2" /></a><br /></span><span style="font-size:100%;">- Untuk merubah ukuran dan posisi kontrol </span><span style="font-weight: bold;font-size:100%;" >CommandButton</span><span style="font-size:100%;"> gunakan mouse pointer , tarik dan drag sesuai keinginan anda. Bisa juga dengan merubah nilai di properties untuk </span><span style="font-weight: bold;font-size:100%;" >Height</span><span style="font-size:100%;"> dan </span><span style="font-weight: bold;font-size:100%;" >Width</span><span style="font-weight: bold; color: rgb(51, 102, 255);font-size:100%;" ><br /></span><span style="font-size:100%;"><br /></span><span style="font-weight: bold; color: rgb(51, 102, 255);font-size:100%;" >2. Properti CommandButton</span><span style="font-size:100%;"><br /><br /></span><table style="border-collapse: collapse; width: 495px; height: 700px; text-align: left; margin-left: 0px; margin-right: 0px;" border="6" cellpadding="2" cellspacing="0"><col style="width: 87pt;" width="116"> <col style="width: 263pt;" width="350"> <tbody><tr style="height: 25.5pt;" height="34"> <td class="xl68" style="height: 25.5pt; width: 87pt; text-align: center; font-weight: bold;" width="116" height="34"><span style="font-size:100%;">Properti</span></td> <td class="xl68" style="border-left: medium none; width: 263pt; text-align: center; font-weight: bold;" width="350"><span style="font-size:100%;">Keterangan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Name</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Nama dari kontrol CommandButton yang dibuat</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 47.25pt;" height="63"><span style="font-size:100%;">Appereance</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan warna dan efek<br />0 - Flat untuk tampilan datar<br />1 - 3D untuk tampilan 3 dimensi<br /></span><span style="font-size:100%;"> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 31.5pt;" height="42"><span style="font-size:100%;">BackColor</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan warna background CommandButton dengan<br />terlebih dahulu mengganti Style dengan 1 - Graphical<br /></span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 31.5pt;" height="42"><span style="font-size:100%;">Cancel</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Tombol perintah yang mendapat fokus akan bisa dijalankan dengan menggunakan tombol Esc</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Teks yang tampil dalam tombol CommandButton</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 31.5pt;" height="42"><span style="font-size:100%;">Default</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Tombol perintah menjadi fokus pertama pada saat aplikasi dijalankan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">DisabledPicture</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menampilkan gambar saat tombol perintah pada kondisi disabled</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 47.25pt;" height="63"><span style="font-size:100%;">DownPicture</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menampilkan gambar pada saat tombol tersebut di klik. Kita dapat memberikan gambar yang berbeda pada tombol, yaitu pada saat tidak menekan dan saat menekan tombol</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">DragIcon</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menampilkan icon pada saat tombol di drag</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Enabled</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan kontrol CommandButton aktif atau tidak</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Font</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan jenis dan size huruf</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Height</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan tingginya kontrol</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Left</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan jarak kontrol dari sisi kiri form</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">MouseIcon</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan Icon Mouse</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 31.5pt;" height="42"><span style="font-size:100%;">MousePointer</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan bentuk kursor Mouse, pada saat berada di atas kontrol CommandButton</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl70" style="border-top: medium none; height: 47.25pt; width: 87pt;" width="116" height="63"><span style="font-size:100%;">Picture</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan file gambar yang akan ditampilkan pada tombol perintah. Terlebih dahulu ganti Style dengan pilihan 1 - Graphical</span><span style="font-size:100%;"> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl70" style="border-top: medium none; height: 47.25pt; width: 87pt;" width="116" height="63"><span style="font-size:100%;">Style</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan jenis tombol perintah<br />0 - Standard untuk standard window<br />1 - Garaphical untuk gambar<br /></span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">TabIndex</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan urutan nomor CommandButton</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 31.5pt;" height="42"><span style="font-size:100%;">TabStop</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan apakah tombol CommandButton dapat atau tidak menerima fokus</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; height: 31.5pt;" height="42"><span style="font-size:100%;">ToolTipText</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan teks yang akan ditampilkan dalam tooltip (penjelasan singkat pada objek)</span><span style="font-size:100%;"> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Top</span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan jarak kontrol dari sisi atas form</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Visible</span><span style="font-size:100%;"> </span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan tampil/tidaknya CommandButton di aplikasi</span><span style="font-size:100%;"> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Width</span><span style="font-size:100%;"> </span></td> <td class="xl65" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Menentukan lebar CommandButton</span></td> </tr> </tbody></table><span style="font-size:100%;"><br /></span><span style="font-weight: bold; color: rgb(51, 102, 255);font-size:100%;" >3. Contoh Penggunaan CommandButton<br /></span><span style="font-size:100%;"><br />- Buat form baru<br />- Buat empat buah kontrol <a href="http://joss7vb.blogspot.com/2008/11/mengenal-label.html"><span style="font-weight: bold;">Label</span></a><br />- Buat tiga buah kontrol <a href="http://joss7vb.blogspot.com/2008/11/mengenal-kontrol-text-box.html"><span style="font-weight: bold;">TextBox</span></a><br />- Atur posisi masing masing kontrol sesuai keinginan dan kebutuhan<br /><br /></span><span style="font-style: italic;font-size:100%;" >Sebagai contoh seperti gambar berikut</span><span style="font-size:100%;"><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgixatDy54yXovBHn1aHlHGaIQ5Z26Fy-YD-Z0Isg5ADvKTRxCIL6s3N2lwy6ziNVdb7S027HkVUXuvkTUobQJRWq1CasPHSsmgDGoimafxs89064bg33-L36JoMKQXeYfhTSG1pBeXcC8/s1600-h/cb3.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 242px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgixatDy54yXovBHn1aHlHGaIQ5Z26Fy-YD-Z0Isg5ADvKTRxCIL6s3N2lwy6ziNVdb7S027HkVUXuvkTUobQJRWq1CasPHSsmgDGoimafxs89064bg33-L36JoMKQXeYfhTSG1pBeXcC8/s320/cb3.jpg" alt="" id="BLOGGER_PHOTO_ID_5268156564045925586" border="2" /></a><br /></span><span style="font-size:100%;"><span style="font-style: italic;">Kemudian atur propertinya, sebagai berikut;</span></span><span style="font-weight: bold;font-size:100%;" ><br /><br /></span> <table style="border-collapse: collapse; width: 435px; height: 500px; text-align: left; margin-left: 0px; margin-right: 0px;" border="6" cellpadding="2" cellspacing="2"><col style="width: 65pt;" width="86"> <col style="width: 68pt;" width="90"> <col style="width: 157pt;" width="209"> <tbody><tr style="height: 15.75pt;" height="21"> <td class="xl67" style="height: 15.75pt; width: 65pt; text-align: center; font-weight: bold;" width="86" height="21"><span style="font-size:100%;">Kontrol</span></td> <td class="xl66" style="width: 68pt; text-align: center; font-weight: bold;" width="90"><span style="font-size:100%;">Properti</span></td> <td class="xl68" style="width: 157pt; text-align: center; font-weight: bold;" width="209"><span style="font-size:100%;">Nilai</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl72" style="height: 31.5pt;" height="42"><span style="font-size:100%;">Form1</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-left: medium none;"><span style="font-size:100%;">Form1</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Program Perkalian Sederhana</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl72" style="border-top: medium none; height: 63pt;" height="84"><span style="font-size:100%;">Label1</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Lb Judul</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">AutoSize</span></td> <td class="xl70" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">True</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Program Perkalian Sederhana</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Font</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">MS Sans</span><span style="font-size:100%;"> </span><span style="font-size:100%;">Serif / size 14</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl71" style="border-top: medium none; height: 31.5pt; width: 65pt;" width="86" height="42"><span style="font-size:100%;">Label2</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">LbBilangan1</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Bilangan 1</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl71" style="border-top: medium none; height: 31.5pt; width: 65pt;" width="86" height="42"><span style="font-size:100%;">Label3</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">LbBilangan2</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Bilangan 2</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl71" style="border-top: medium none; height: 31.5pt; width: 65pt;" width="86" height="42"><span style="font-size:100%;">Label4</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">LbHasil</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Bilangan Hasil</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl71" style="border-top: medium none; height: 63pt; width: 65pt;" width="86" height="84"><span style="font-size:100%;">Text1</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">TxBilangan1</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Alignment</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">0 - Left Justify</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">TabIndex</span></td> <td class="xl70" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">1</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Text</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Kosongkan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl71" style="border-top: medium none; height: 63pt; width: 65pt;" width="86" height="84"><span style="font-size:100%;">Text2</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">TxBilangan2</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Alignment</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">0 - Left Justify</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">TabIndex</span></td> <td class="xl70" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">2</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Text</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Kosongkan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl71" style="border-top: medium none; height: 63pt; width: 65pt;" width="86" height="84"><span style="font-size:100%;">Text3</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">TxHasil</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Alignment</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">0 - Left Justify</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">TabIndex</span></td> <td class="xl70" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">3</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Text</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Kosongkan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="3" class="xl72" style="border-top: medium none; height: 47.25pt;" height="63"><span style="font-size:100%;">Command1</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">CbHitung</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Hitung</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">TabIndex</span></td> <td class="xl70" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">3</span><span style="display: block;font-size:100%;" id="formatbar_Buttons" ><span class="on" style="display: block;" id="formatbar_Add_Image" title="Tambah Gambar" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="addImage();" onmousedown="CheckFormatting(event);;ButtonMouseDown(this);"><img src="http://www.blogger.com/img/blank.gif" alt="Tambah Gambar" class="gl_photo" border="0" /></span></span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="3" class="xl72" style="border-top: medium none; height: 47.25pt;" height="63"><span style="font-size:100%;">Command2</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Name</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">CbSelesai</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">Caption</span></td> <td class="xl69" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">Selesai</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21"><span style="font-size:100%;">TabIndex</span></td> <td class="xl70" style="border-top: medium none; border-left: medium none;"><span style="font-size:100%;">4</span></td> </tr> </tbody></table><span style="font-weight: bold;font-size:100%;" ><br /></span><span style="font-size:100%;"><span style="font-style: italic;">Hasil pengaturan properti dapat dilihat pada gambar berikut:</span><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiviwF2Mluv7G5L4HRDTdJc8wKS1QGjc4WOviukBWo2MYNrfeGoeNCaq2_Ljk27BsYkm2HdDkPo7G2hrqgYpg9qmrjtS_Jml13aXAGqMhYFvhzKX33nyFZGiFz-2a-x2xru0AVbfBv3w88/s1600-h/cb4.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 242px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiviwF2Mluv7G5L4HRDTdJc8wKS1QGjc4WOviukBWo2MYNrfeGoeNCaq2_Ljk27BsYkm2HdDkPo7G2hrqgYpg9qmrjtS_Jml13aXAGqMhYFvhzKX33nyFZGiFz-2a-x2xru0AVbfBv3w88/s320/cb4.jpg" alt="" id="BLOGGER_PHOTO_ID_5268158009072288514" border="2" /></a></span><span style="font-size:100%;"><br />- Klik ganda pada <span style="font-weight: bold; color: rgb(51, 102, 255);">CommandButton Hitung, </span><span style="color: rgb(51, 102, 255);"><span style="color: rgb(0, 0, 0);">akan muncul sebuah jendela kode. Ketikkan kode berikut pada jendela kode tersebut<br /><br /><span style="color: rgb(51, 102, 255);">Private Sub CbHitung_Click()</span><br /><span style="color: rgb(51, 102, 255);">TxHasil.Text = TxBilangan1.Text * TxBilangan2.Text</span><br /><span style="color: rgb(51, 102, 255);">End Sub</span><br /><br /></span></span>- Kemudian klik ganda pada</span><span style="color: rgb(51, 102, 255); font-weight: bold;font-size:100%;" > CommandButton Selesai </span><span style="color: rgb(51, 102, 255);font-size:100%;" ><span style="color: rgb(0, 0, 0);">maka akan muncul lagi jendela kode yang tadi. </span></span><span style="font-size:100%;"><br /></span><span style="color: rgb(51, 102, 255);font-size:100%;" ><span style="color: rgb(0, 0, 0);">- Ketikkan kode berikut</span></span><span style="font-size:100%;"><br /><br /></span><span style="color: rgb(51, 102, 255);font-size:100%;" ><span style="color: rgb(0, 0, 0);"><span style="color: rgb(51, 102, 255);">Private Sub CbSelesai_Click()</span> <span style="color: rgb(51, 102, 255);"><br />End</span> <span style="color: rgb(51, 102, 255);"><br />End Sub</span><br /></span></span><span style="font-size:100%;"><br />Kode ini akan mengakhiri atau keluar dari aplikasi pada saat CommandButton atau tombol </span><span style="color: rgb(0, 0, 0); font-weight: bold;font-size:100%;" >Selesai</span><span style="font-size:100%;"> di klik.<br /><br /></span><span style="font-size:100%;">Jendela kode dan kode program dari kedua CommandButton di atas dapat dilihat pada gambar berikut:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxk1HsJkP_ax3NpNlLCBn_02PMKnjXM8XzxnrCiw-dDnlDg7tLjQ8RTZoD84EC4sF3R_Un7uH-AVE2Fb7J3hLTrNm6nw1_JJejpRYm_PTse6pqd514p7WW9phiwMBgzHj6sZY7Eu8fXMA/s1600-h/kodecb.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 137px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxk1HsJkP_ax3NpNlLCBn_02PMKnjXM8XzxnrCiw-dDnlDg7tLjQ8RTZoD84EC4sF3R_Un7uH-AVE2Fb7J3hLTrNm6nw1_JJejpRYm_PTse6pqd514p7WW9phiwMBgzHj6sZY7Eu8fXMA/s320/kodecb.jpg" alt="" id="BLOGGER_PHOTO_ID_5268159395666070338" border="2" /></a><br />- Klik </span><span style="font-weight: bold;font-size:100%;" >Run</span><span style="font-size:100%;"> atau tekan </span><span style="font-weight: bold;font-size:100%;" >F5</span><span style="font-size:100%;"><br />Maka aplikasi akan dijalankan, dan tampilan aplikasinya adalah seperti gambar berikut:</span><span style="font-weight: bold;font-size:100%;" ><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWVUhGruoC_bLallB5X3nzKIPqHBdbmjntXDTXGcVqdfPkjlX2h_bLcjEQC0dOOhUb-QYEGpSheMNNu2JLEDfigInSjUkHVjzA8b0EOhrZ-z-z3XyzN9ySlQ02PucgvVlv4k-fWMMYzKo/s1600-h/runcb.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 242px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWVUhGruoC_bLallB5X3nzKIPqHBdbmjntXDTXGcVqdfPkjlX2h_bLcjEQC0dOOhUb-QYEGpSheMNNu2JLEDfigInSjUkHVjzA8b0EOhrZ-z-z3XyzN9ySlQ02PucgvVlv4k-fWMMYzKo/s320/runcb.jpg" alt="" id="BLOGGER_PHOTO_ID_5268160083270901522" border="2" /></a><br /></span><span style="font-style: italic;font-size:100%;" ><br /><br />Ketikkan angka di kotak Bilangan1 dan Bilangan2 kemudian klik tombol Hitung, maka di kotak Hasil akan tampil hasil perhitungannya.<br />Untuk mengakhiri atau keluar program klik tombol Selesai</span><span style="font-weight: bold;font-size:100%;" >.<br /></span><span style="font-size:100%;"><br /></span></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-28809059534457907852008-11-02T00:05:00.020+07:002008-11-13T23:37:15.829+07:00Mengenal Kontrol Text Box<div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj95Wd7Uu7H6L8Wa4tx-bLxAEMOtYc14AM64XBBIoxnq6uZ1S82E2zitho3L2Nk7lG5IH7P_gUZ4Dp5pLv39Th84hHzvIF21XzqfwOTj5E4B8UV0k2KrhgCJV3TJjMtQaoWoktwXsHXnx0/s1600-h/textbox.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 47px; height: 40px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj95Wd7Uu7H6L8Wa4tx-bLxAEMOtYc14AM64XBBIoxnq6uZ1S82E2zitho3L2Nk7lG5IH7P_gUZ4Dp5pLv39Th84hHzvIF21XzqfwOTj5E4B8UV0k2KrhgCJV3TJjMtQaoWoktwXsHXnx0/s200/textbox.jpg" alt="" id="BLOGGER_PHOTO_ID_5263737379873257154" border="0" /></a>TextBox adalah kontrol untuk menerima input dari pemakai program. Kebanyakan TextBox ini diberi keterangan oleh <a href="http://joss7vb.blogspot.com/2008/11/mengenal-label.html"><span style="font-weight: bold;">Label</span></a> untuk memperjelas pada saat input data oleh si pemakai.<br /></div><div class="fullpost"><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">1. Membuat TextBox</span><br />- Buka Visual Basic 6.0, kemudian klik <span style="font-weight: bold;">StandardExe </span>lalu klik <span style="font-weight: bold;">Open<br /></span>- Klik ganda kontrol TextBox pada <a>Toolbox</a> maka di layar form akan muncul sebuah kontrol TextBox <span style="font-style: italic;font-size:85%;" >(lihat gambar)</span><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQl10Jg3GoGZDFG6JoelmxLuPnpTzZe7EGQhHc7wD_sWsvZiex29W4kw0IZzUdhQvZEDX9aLwu2egN5kFL6N7LyzHpXntXMMTRP14Py0XBUV2P7iTlaQrAo4nolCAmNB8nhlSHTqgrYZc/s1600-h/tb1.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 232px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQl10Jg3GoGZDFG6JoelmxLuPnpTzZe7EGQhHc7wD_sWsvZiex29W4kw0IZzUdhQvZEDX9aLwu2egN5kFL6N7LyzHpXntXMMTRP14Py0XBUV2P7iTlaQrAo4nolCAmNB8nhlSHTqgrYZc/s320/tb1.jpg" alt="" id="BLOGGER_PHOTO_ID_5268175539988336818" border="2" /></a><br />- Untuk merubah ukuran dan posisi kontrol <span style="font-weight: bold;">TextBox</span> gunakan mouse pointer , tarik dan drag sesuai keinginan anda. Bisa juga dengan merubah nilai di properties untuk <span style="font-weight: bold;">Height</span> dan <span style="font-weight: bold;">Width</span><br /><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">2. Properti TextBox</span><br /><br />Berikut penjelasan mengenai properti yang umum dipakai pada kontrol TextBox<br /><br /><table style="border-collapse: collapse; width: 375pt;" border="6" cellpadding="2" cellspacing="0" width="459"><col style="width: 87pt;" width="116"> <col style="width: 257pt;" width="343"> <tbody><tr style="height: 25.5pt;" height="34"> <td class="xl68" style="height: 25.5pt; width: 87pt; text-align: center; font-weight: bold;" width="116" height="34"><span style="font-size:130%;">Properti</span></td> <td class="xl64" style="width: 257pt; text-align: center; font-weight: bold;" width="343"><span style="font-size:130%;">Keterangan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="height: 15.75pt;" height="21">Name</td> <td class="xl66">Nama dari kontrol TextBox yang dibuat</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl73" style="height: 60.75pt;" height="81">Alignment</td> <td class="xl67">Meratakan teks<span style=""> </span>pada kotak objek TextBox<br />0 - Left Justify untuk perataan kiri<br />1- Right Justify untuk perataan kanan<br />2 - Center untuk perataan tengah<br /></td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl68" style="border-bottom: 1pt solid black; height: 45.75pt;" height="61">Appereance</td> <td class="xl69">Menentukan warna dan efek<br />0 - Flat untuk tampilan datar<br />1 - 3D untuk tampilan 3 dimensi<br /><span style=""> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="border-top: medium none; height: 15.75pt;" height="21">BackColor</td> <td class="xl66" style="border-top: medium none;">Menentukan warna background TextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl73" style="height: 47.25pt;" height="63">BackStyle</td> <td class="xl67">Menentukan sifat dari label<br />0 - Transparent untuk transparan (tembus pandang)<br />1 - Opaque untuk tidak transparan (tembus pandang)<br /></td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl68" style="border-bottom: 1pt solid black; height: 46.5pt;" height="62">BorderStyle</td> <td class="xl69">Menentukan tipe bingkai kotak TextBox<br />0 -None untuk tidak ada pembatas<br />1 - Fixed Single untuk membuat pembatas garis tunggal<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="height: 15.75pt;" height="21">DataFormat</td> <td class="xl67">Menentukan Format dari data yang diisikan</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="height: 15.75pt;" height="21">Enabled</td> <td class="xl66">Menentukan aktif/tidak kontrol TextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl73" style="height: 31.5pt;" height="42">Font</td> <td class="xl67">Menentukan jenis dan ukuran huruf. Juga untuk membuat huruf tebal atau miring<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="height: 15.75pt;" height="21">ForeColor</td> <td class="xl66">Menentukan warna teks dalam objek TextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="border-top: medium none; height: 15.75pt;" height="21">Height</td> <td class="xl66" style="border-top: medium none;">Menentukan tinggi TextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="border-top: medium none; height: 15.75pt;" height="21">Left</td> <td class="xl66" style="border-top: medium none;">Menentukan jarak TextBox dari sisi kiri form</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="height: 15.75pt;" height="21">Locked</td> <td class="xl67">Mengunci atau melepas pengisian data pada TextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl74" style="height: 15.75pt;" height="21">MouseIcon</td> <td class="xl76">Menentukan Icon mouse</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl64" style="border-top: medium none; height: 15.75pt;" height="21">MultiLine</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">Teks yang diinput pada TextBox bisa lebih dari satu baris</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-bottom: 1pt solid black; height: 31.5pt;" height="42">MousePointer</td> <td class="xl69">Menentukan bentuk kursor mouse pada saat diletakkan di atas TextBox<span style=""> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl64" style="border-top: medium none; border-bottom: 1pt solid black; height: 47.25pt;" height="63">PasswordChar</td> <td class="xl67" style="border-left: medium none;">Menentukan karakter yang akan ditampilkan saat input . Umumnya digunakan simbol password atau kata sandi<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl70" style="height: 15.75pt;" height="21">ScrollBars</td> <td class="xl66">Menampilkan ScrollBar (penggulung)</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl70" style="height: 15.75pt;" height="21">TabStop</td> <td class="xl66" style="border-top: medium none;">Menentukan TextBox bisa menerima fokus atau tidak</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="border-top: medium none; height: 15.75pt;" height="21">TabIndex</td> <td class="xl66" style="border-top: medium none;">Menentukan nomor urut fokus TextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl64" style="border-top: medium none; border-bottom: 1pt solid black; height: 31.5pt;" height="42">Text</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">Teks yang akan tampil pada TextBox. Umumnya dikosongkan Sehingga pada saat proses pengisian tidak ada data terlihat</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="1" class="xl68" style="border-top: medium none; border-bottom: 1pt solid black; height: 31.5pt;" height="42">ToolTipText</td> <td class="xl69" style="border-top: medium none;">Menentukan teks yang akan ditampilkan dalam tooltip (penjelasan singkat pada objek)</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="height: 15.75pt;" height="21">Top</td> <td class="xl67">Menentukan jarak TextBox dari sisi atas form</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl65" style="height: 15.75pt;" height="21">Visible</td> <td class="xl66">Menentukan tampil/tidaknya TextBox di aplikasi</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="height: 15.75pt;" height="21">Width</td> <td class="xl67">Menentukan lebar TextBox</td> </tr> </tbody></table><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">3. Contoh Penggunaan TextBox</span><br /><br /><span style="font-style: italic;">- Buat tiga buah kontrol label dan 3 buah kontrol TextBox, sehingga terlihat seperti gambar</span><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXdQo7ukNn6Lmizacpr_pHTksrhn68cKFZyGvCh3X2UAVrzwZDhjFPKbh1fl8giaJZo6xjCIPL0cwCBGrZw1LsECZz_jlYXdfD13bvNMlZsm0rorP_8OmuIyJpl6pjwUxNdBWgkPV9Ih8/s1600-h/tb2.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 231px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXdQo7ukNn6Lmizacpr_pHTksrhn68cKFZyGvCh3X2UAVrzwZDhjFPKbh1fl8giaJZo6xjCIPL0cwCBGrZw1LsECZz_jlYXdfD13bvNMlZsm0rorP_8OmuIyJpl6pjwUxNdBWgkPV9Ih8/s320/tb2.jpg" alt="" id="BLOGGER_PHOTO_ID_5268180344244605250" border="2" /></a><br /><span style="font-style: italic;">Kemudian atur Propertinya<br /><br /></span><table style="border-collapse: collapse; width: 423px; height: 500px;" border="6" cellpadding="2" cellspacing="0"><col style="width: 59pt;" width="78"> <col style="width: 68pt;" width="90"> <col style="width: 197pt;" width="262"> <tbody><tr style="height: 15.75pt;" height="21"> <td class="xl65" style="height: 15.75pt; width: 59pt; text-align: center; font-weight: bold;" width="78" height="21"><span style="font-size:130%;">Kontrol</span></td> <td class="xl64" style="width: 68pt; text-align: center; font-weight: bold;" width="90"><span style="font-size:130%;">Properti</span></td> <td class="xl66" style="width: 197pt; text-align: center;" width="262"><span style="font-size:130%;"><span style="font-weight: bold;">Nilai</span><br /></span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl68" style="height: 31.5pt;" height="42">Form1</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-left: medium none;">FormTextBox</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Caption</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Menghitung Total Bayar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl68" style="border-top: medium none; height: 63pt;" height="84">Label1</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Lb Judul</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">AutoSize</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">True</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Caption</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Form1<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Font</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">MS Sans<span style=""> </span>Serif / size 14</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl69" style="border-top: medium none; height: 31.5pt; width: 59pt;" width="78" height="42">Label2</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">LbHarga</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Caption</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Harga Kamar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl69" style="border-top: medium none; height: 31.5pt; width: 59pt;" width="78" height="42">Label3</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">LbLama</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Caption</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Lama Menginap</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl69" style="border-top: medium none; height: 31.5pt; width: 59pt;" width="78" height="42">Label4</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">LbBayar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Caption</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Total Bayar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl69" style="border-top: medium none; height: 63pt; width: 59pt;" width="78" height="84">Text1</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">TxHarga</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Alignment</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">TabIndex</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">1</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Text</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Kosongkan</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl69" style="border-top: medium none; height: 63pt; width: 59pt;" width="78" height="84">Text2</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">TxLama</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Alignment</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">TabIndex</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">2</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Text</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Kosongkan</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl69" style="border-top: medium none; height: 63pt; width: 59pt;" width="78" height="84">Text3</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Name</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">TxBayar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Alignment</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">0 - Left Justify</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">TabIndex</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">3</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Text</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Kosongkan</td> </tr> </tbody></table><br />Hasil dari pembuatan properti ini, dapat dilihat pada gambar berikut<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWZAaTQOOaCQOtsRGnisDwQkVjVqINLC4UrJQFt5zfiIKehz4z3Ffv-a7d7fx2w4vciGPl13yHo9sQnPnFT-GJY-F6SQCedK7JhdVTDGuWhkAaRWIotogc0qfAGIH63O33lVSPWigKMQo/s1600-h/tb3.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 233px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWZAaTQOOaCQOtsRGnisDwQkVjVqINLC4UrJQFt5zfiIKehz4z3Ffv-a7d7fx2w4vciGPl13yHo9sQnPnFT-GJY-F6SQCedK7JhdVTDGuWhkAaRWIotogc0qfAGIH63O33lVSPWigKMQo/s320/tb3.jpg" alt="" id="BLOGGER_PHOTO_ID_5268177060531176770" border="2" /></a><br />- Klik ganda pada TextBox <span style="color: rgb(51, 102, 255); font-weight: bold;">TxBayar</span> (dengan label Total Bayar), maka akan muncul jendela kode di layar.Kemudian ketik kode program berikut ini<br /><br /><div style="text-align: left;"><span style="color: rgb(51, 102, 255);"> Private Sub TxBayar_Change(Index As Integer)</span><br /><span style="color: rgb(51, 102, 255);"> TxBayar.Text = TxHarga.Text * TxLama.Text</span><br /><span style="color: rgb(51, 102, 255);"> End Sub</span><br /></div><br />Dalam gambar jendela kodenya sbb:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2KSBEXmtdTaWAGCDfh824K97cYIdDENVnbPDouplqfh7AhIb7nO5_WvmvV92toISTs5hkIqdWuBEVeWqmlYI5NHJnuKcEElSGN0VZBlizPFdcCJJSwxzhLFvZ0c3eSkbcjnK2pN0lVoU/s1600-h/tb5.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 160px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2KSBEXmtdTaWAGCDfh824K97cYIdDENVnbPDouplqfh7AhIb7nO5_WvmvV92toISTs5hkIqdWuBEVeWqmlYI5NHJnuKcEElSGN0VZBlizPFdcCJJSwxzhLFvZ0c3eSkbcjnK2pN0lVoU/s320/tb5.jpg" alt="" id="BLOGGER_PHOTO_ID_5268177990785454978" border="2" /></a><br /><div style="text-align: justify;">Kode ini akan menghitung Harga Kamar (<span style="color: rgb(51, 102, 255); font-weight: bold;">TxHarga</span>) dengan Lama Menginap (<span style="color: rgb(51, 102, 255); font-weight: bold;">TxLama</span>), dan hasilnya akan ditampilkan pada Total Bayar (<span style="font-weight: bold; color: rgb(51, 102, 255);">TxBayar</span>).<br /><br />- Simpan form dan projek ini dengan nama <span style="font-weight: bold;">Test-TextBox</span><br />- Untuk menjalankan program aplikasi tekan <span style="font-weight: bold;">F5</span>, atau di menubar klik <span style="font-weight: bold;">Run</span> lalu klik <span style="font-weight: bold;">Start</span>. Maka Hasil akhirnya seperti gambar berikut:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIYKKO0aGl86NkXRZOZD7GyCVmpGYWSyOfHsT68g8jZK6LTXSoxc-voEAFYUUOZPHWeyMYEGhH3hfFYv6aUigYCmYYPQvFDt1CFNkUD03u07_MSkz2ZlFwzycDF3YTkXEw4n5uvJ5CUpw/s1600-h/tb6.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 234px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIYKKO0aGl86NkXRZOZD7GyCVmpGYWSyOfHsT68g8jZK6LTXSoxc-voEAFYUUOZPHWeyMYEGhH3hfFYv6aUigYCmYYPQvFDt1CFNkUD03u07_MSkz2ZlFwzycDF3YTkXEw4n5uvJ5CUpw/s320/tb6.jpg" alt="" id="BLOGGER_PHOTO_ID_5268178542221466146" border="2" /></a><br /></div><span style="font-weight: bold;">Selamat Berlatih...................</span><br /><br /><br /><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-56615522562467834722008-11-01T18:55:00.017+07:002008-11-16T18:55:10.598+07:00Mengenal Kontrol Label<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0AnDLHMO3A7TYVVElxbJNBcIDRGTQcuKPDpfT4HBKlw0MXuqhE5hOisGmDJWqgXgUCX4Kax5UEQmz59OsAUAuhrZ1qfkdft7YONvXB7zmroTPZ2aZMJuHTyJj6BB0bIuWSVFqP8J6glM/s1600-h/label.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 70px; height: 60px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0AnDLHMO3A7TYVVElxbJNBcIDRGTQcuKPDpfT4HBKlw0MXuqhE5hOisGmDJWqgXgUCX4Kax5UEQmz59OsAUAuhrZ1qfkdft7YONvXB7zmroTPZ2aZMJuHTyJj6BB0bIuWSVFqP8J6glM/s200/label.jpg" alt="" id="BLOGGER_PHOTO_ID_5263662281324565330" border="0" /></a><span style="font-weight: bold; font-style: italic;">Label</span> adalah sebuah kontrol yang berfungsi menampilkan teks pada aplikasi yang kita buat untuk memperjelas sebuah objek. Kontrol label paling banyak digunakan untuk memberi nama atau keterangan dari kontrol Text Box.<br /><div class="fullpost"><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">1. Membuat Label</span><br />Berikut langkah-langkah untuk membuat label:<br />- Buka Visual Basic 6.0, kemudian klik <span style="font-weight: bold;">StandardExe </span>lalu klik <span style="font-weight: bold;">Open</span><br />- Klik ganda kontrol label pada <a href="http://joss7vb.blogspot.com/2008/10/tool-box_20.html"><span style="font-weight: bold;">Toolbox </span></a>maka di layar form akan muncul sebuah kontrol label<br />- Tekan F4 untuk menampilkan Properties Window<br />- Ketik pada <span style="font-weight: bold;">Caption</span> sebuah teks sesuai keinginan dan kebutuhan kita. Dalam hal ini misalnya joss7vb.blogspot.com<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh45JCrynftVFqOxpNECdw953sBjUlL5x6WmPYJ5FrjvPsP7o-yR-SJ0MoI_MtIWNTl5hexLghPB6zprubf1KbAUd7Ky3kzb9Mmm_OrmSf8R69hFzOYhNpZEgBIQnJuR2FjGn0wHZVH3m0/s1600-h/label1+.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 290px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh45JCrynftVFqOxpNECdw953sBjUlL5x6WmPYJ5FrjvPsP7o-yR-SJ0MoI_MtIWNTl5hexLghPB6zprubf1KbAUd7Ky3kzb9Mmm_OrmSf8R69hFzOYhNpZEgBIQnJuR2FjGn0wHZVH3m0/s400/label1+.jpg" alt="" id="BLOGGER_PHOTO_ID_5263732437201229666" border="6" /></a>- Kita dapat merubah ukuran dan posisi dengan menempatkan mouse pointer pada handdle label. Kemudian rubah atau geser sesuai keinginan<br />- Untuk merubah otomatis ukuran kotak kontrol sesuai dengan besar dan panjang teks maka ganti nilai <span style="font-weight: bold;">AutoSize</span> menjadi <span style="font-weight: bold;">True.</span><br /><br /><span><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmKiZ3bexs49U54MYLD7VoHkHj_y7A2YD11X1ZyNI2ov48mz4uJB5rl3HeYla1HFQgeFunkjehJZnICVPSxPllRM218cI1ZI8CZytG9y6KTgNrbH6Zx66jVAItAoSSlxHVjuvjjDLles/s1600-h/label2.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 290px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmKiZ3bexs49U54MYLD7VoHkHj_y7A2YD11X1ZyNI2ov48mz4uJB5rl3HeYla1HFQgeFunkjehJZnICVPSxPllRM218cI1ZI8CZytG9y6KTgNrbH6Zx66jVAItAoSSlxHVjuvjjDLles/s400/label2.jpg" alt="" id="BLOGGER_PHOTO_ID_5263733187526596786" border="2" /></a>- Jika ingin membuat teks</span><span style="font-weight: bold;"> </span>yang terdiri dari beberapa baris ke bawah maka buat nilai properti <span style="font-weight: bold;">AutoSize</span> dan <span style="font-weight: bold;">WordWrap</span> bernilai <span style="font-weight: bold;">True</span><span style="font-weight: bold;"><br /></span><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">2. Properti Label</span><br /><br />Berikut ini penjelasan beberapa properti penting dari kontrol label<br /><br /><table style="border-collapse: collapse; width: 437px; height: 600px;" border="6" cellpadding="2" cellspacing="0"><col style="width: 87pt;" width="116"> <col style="width: 165pt;" width="220"> <tbody><tr style="height: 25.5pt;" height="34"> <td class="xl66" style="height: 25.5pt; width: 87pt; text-align: center; font-weight: bold;" width="116" height="34"><span style="font-size:130%;">Properti</span></td> <td class="xl67" style="width: 165pt; text-align: center; font-weight: bold;" width="220"><span style="font-size:130%;">Keterangan</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; text-align: center;" height="21">Name</td> <td class="xl69">Nama dari kontrol label yang dibuat</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="height: 60.75pt; text-align: center;" height="81">Alignment</td> <td class="xl71">Meratakan teks label pada kotak objek label.<br />0 - Left Justify untuk perataan kiri<br />1- Right Justify untuk perataan kanan<br />2 - Center untuk perataan tengah<br /></td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl66" style="border-bottom: 1pt solid black; height: 45.75pt; text-align: center;" height="61">Appereance</td> <td class="xl72">Menentukan warna dan efek<br />0 - Flat untuk tampilan datar<br />1 - 3D untuk tampilan 3 dimensi<br /><span style=""> </span></td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="height: 30.75pt; text-align: center;" height="41">AutoSize</td> <td class="xl71">Menyesuaikan kotak kontrol dengan besar dan panjangnya teks Pilihannya terdiri dari True & False</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; text-align: center;" height="21">BackColor</td> <td class="xl69">Menentukan warna background label</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="height: 45.75pt; text-align: center;" height="61">BackStyle</td> <td class="xl71">Menentukan sifat dari label<br />0 - Transparent untuk transparan (tembus pandang)<br />1 - Opaque untuk tidak tranparan (tembus pandang)<br /></td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl66" style="border-bottom: 1pt solid black; height: 45.75pt; text-align: center;" height="61">BorderStyle</td> <td class="xl72">Menentukan tipe bingkai kotak label<br />0 -None untuk tidak ada pembatas<br />1 - Fixed Single untuk membuat pembatas garis tunggal<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl75" style="height: 15.75pt; text-align: center;" height="21">Caption</td> <td class="xl71">Teks yang akan ditampilkan pada label</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; text-align: center;" height="21">Enabled</td> <td class="xl69">Mengaktifkan label</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="height: 30.75pt; text-align: center;" height="41">Font</td> <td class="xl71">Menentukan jenis dan ukuran huruf. Juga untuk membuat huruf tebal atau miring</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; text-align: center;" height="21">ForeColor</td> <td class="xl69">Menentukan warna teks label</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl70" style="height: 30.75pt; text-align: center;" height="41">Index</td> <td class="xl71">Menentukan urutan nomor index objek sekarang dalam array objek<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; text-align: center;" height="21">Height</td> <td class="xl69">Menentukan tinggi label</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl75" style="height: 15.75pt; text-align: center;" height="21">Left</td> <td class="xl71">Menentukan jarak label dari sisi kiri form</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl66" style="border-bottom: 1pt solid black; height: 30.75pt; text-align: center;" height="41">MousePointer</td> <td class="xl72">Menentukan bentuk kursor mouse pada saat diletakkan di atas label<span style=""> </span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl75" style="height: 15.75pt; text-align: center;" height="21">TabIndex</td> <td class="xl71">Menentukan nomor urut fokus label</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl66" style="border-bottom: 1pt solid black; height: 30.75pt; text-align: center;" height="41">ToolTipText</td> <td class="xl72">Menentukan teks yang akan ditampilkan dalam tooltip (penjelaskan singkat pada objek<br /></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl75" style="height: 15.75pt; text-align: center;" height="21">Top</td> <td class="xl71">Menentukan jarak label dari sisi atas form</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt; text-align: center;" height="21">Visible</td> <td class="xl69">Menentukan tampil/tidaknya label di aplikasi</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl75" style="height: 15.75pt; text-align: center;" height="21">Width</td> <td class="xl71">Menentukan lebar label</td> </tr> <tr style="height: 15pt;" height="20"> <td rowspan="1" class="xl66" style="border-bottom: 1pt solid black; height: 30.75pt; text-align: center;" height="41">WordWrap</td> <td class="xl72">Menentukan ukuran kontrol label akan menyesuaikan dengan teks pada label yang terdapat pada Caption<span style=""> </span></td> </tr> </tbody></table><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-84849611440127797152008-10-30T22:54:00.008+07:002008-11-16T18:53:30.967+07:00Operator Dasar Visual Basic<div style="text-align: justify;"><span style="text-decoration: underline;"></span>Untuk melakukan perubahan dan memanipulsi data, diperlukan operator-operator yang telah tersedia dalam Visual Basic. Adapun operator-operator tersebut adalah sebagai berikut:<br /></div><div class="fullpost"><br /><span style="font-weight: bold;font-size:100%;" ><span style="color: rgb(51, 102, 255);">1. Operator Aritmetika</span><br /></span><br /><div style="text-align: justify;">Operator Aritmetika adalah suatu bentuk operator yang paling sering kita jumpai dalam melakukan perhitungan. Lambang dan contoh penggunaan dapat dilihat dalam tabel berikut:<br /></div><br /><table style="border-collapse: collapse; width: 279pt;" border="2" cellpadding="2" cellspacing="0" width="371"><col style="width: 53pt;" width="70"> <col style="width: 116pt;" width="154"> <col style="width: 110pt;" width="147"> <tbody><tr style="height: 27pt;" height="36"> <td class="xl65" style="height: 27pt; width: 53pt;" width="70" height="36">Operator</td> <td class="xl65" style="border-left: medium none; width: 116pt;" width="154">Keterangan</td> <td class="xl65" style="border-left: medium none; width: 110pt;" width="147">Contoh Penggunaan</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl66" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">^</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Pemangkatan</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 ^ 7 = 49</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">*</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Perkalian</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">7 * 2 = 14</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">+</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Penjumlahan</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">7 + 2 = 9</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">-</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Pengurangan</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">7 - 1 = 6</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">/</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Pembagian</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">49 / 7 = 7</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">\</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Pembagian Integer</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">14 \ 7 = 2</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="border-top: medium none; height: 15.75pt; text-align: center;" height="21">MOD</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Sisa hasil bagi</td> <td class="xl70" style="border-top: medium none; border-left: medium none;">7<span style=""> </span>MOD 2 = 1</td> </tr> </tbody></table><br /><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">2. Operator Pembanding</span><br /><br /><div style="text-align: justify;">Operator pembanding gunanya adalah sebagai pembanding untuk dua nilai. Operator ini berfungsi pada saat digabungkan dengan perintah untuk membuat suatu keputusan, seperti IF. Hasil perbandingan akan dikembalikan dengan nilai TRUE atau FALSE.<br /></div><br /><table style="border-collapse: collapse; width: 325pt;" border="2" cellpadding="2" cellspacing="0" width="433"><col style="width: 53pt;" width="70"> <col style="width: 146pt;" width="195"> <col style="width: 63pt;" span="2" width="84"> <tbody><tr style="height: 12.75pt;" height="17"> <td rowspan="2" class="xl69" style="height: 25.5pt; width: 53pt;" width="70" height="34">Operator</td> <td rowspan="2" class="xl69" style="width: 146pt; text-align: center;" width="195">Keterangan</td> <td colspan="2" class="xl69" style="border-left: medium none; width: 126pt; text-align: center;" width="168">Contoh Penggunaan</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 12.75pt;" height="17">Soal</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Hasil</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42">></td> <td rowspan="2" class="xl71" style="border-top: medium none;">Lebih besar dari</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 > 2</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">7 >7</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42">>=</td> <td rowspan="2" class="xl71" style="border-top: medium none;">Lebih besar dari sama dengan</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 > = 2</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">7 > = 7</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42"><</td> <td rowspan="2" class="xl71" style="border-top: medium none;">Lebih kecil dari</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 <> </td><td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">7 <> </td><td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42"><=</td> <td rowspan="2" class="xl71" style="border-top: medium none;">Lebih besar dari sama dengan</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 < = 2</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">7 < = 7</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42">=</td> <td rowspan="2" class="xl71" style="border-top: medium none;">Sama dengan</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 = 2</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">7 = 7</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42">< ></td> <td rowspan="2" class="xl71" style="border-top: medium none;">Tidak sama dengan</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">7 < > 2</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">7 < >7</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> </tbody></table><br /><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">3. Operator Logika</span><br /><br />Operator logika digunakan untuk membandingkan suatu nilai dengan nilai yang lain dan akan mendapatkan hasil TRUE (benar) atau FALSE (salah). Bentuk dan contoh dari operator ini dapat dilihat pada tabel berikut:<br /><br /><table style="border-collapse: collapse; width: 373pt;" border="2" cellpadding="2" cellspacing="0" width="496"><col style="width: 54pt;" width="72"> <col style="width: 161pt;" width="214"> <col style="width: 95pt;" width="126"> <col style="width: 63pt;" width="84"> <tbody><tr style="height: 12.75pt;" height="17"> <td rowspan="2" class="xl69" style="height: 25.5pt; width: 54pt;" width="72" height="34">Operator</td> <td rowspan="2" class="xl69" style="width: 161pt;" width="214">Keterangan</td> <td colspan="2" class="xl69" style="border-left: medium none; width: 158pt;" width="210">Contoh Penggunaan</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl67" style="border-top: medium none; border-left: medium none; height: 12.75pt;" height="17">Soal</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Hasil</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="2" class="xl70" style="border-top: medium none; height: 31.5pt; text-align: center;" height="42">NOT</td> <td rowspan="2" class="xl71" style="border-top: medium none;">Menyatakan ekspresi TIDAK</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">NOT Benar</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">NOT Salah</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl74" style="border-top: medium none; border-bottom: 1pt solid black; height: 63pt; text-align: center;" height="84">AND</td> <td rowspan="4" class="xl72" style="border-top: medium none; border-bottom: 1pt solid black;">Menyatakan ekspresi DAN</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah AND Salah</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Salah AND Benar</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Benar AND Salah</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Benar AND Benar</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td rowspan="4" class="xl74" style="border-top: medium none; border-bottom: 1pt solid black; height: 63pt; text-align: center;" height="84">OR</td> <td rowspan="4" class="xl72" style="border-top: medium none; border-bottom: 1pt solid black;">Menyatakan ekspresi ATAU</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah OR Salah</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Salah</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Salah OR Benar</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Benar OR Salah</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; border-left: medium none; height: 15.75pt;" height="21">Benar OR Benar</td> <td class="xl68" style="border-top: medium none; border-left: medium none;">Benar</td> </tr> </tbody></table><br /><br /><br /><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-44084144947050772952008-10-29T22:57:00.018+07:002008-11-16T18:51:40.261+07:00Jendela Properties dan Form Layout<div style="text-align: justify;">Informasi lengkap tentang sifat dari sebuah objek ada pada properties. Kita dapat menentukan properties ini sesuai kebutuhan dari objek. Setiap objek dapat berbeda sifatnya. Yang dimaksud dengan sifat disini adalah nama objek, warna, ukuran, posisi dan lain sebagainya.<br /></div><div class="fullpost"><div style="text-align: justify;">Bagian properties dapat dipilih dengan dua cara, yaitu dengan urutan abjad (Alphabetic) dan berdasarkan kategori (Categorized)<br /></div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiABa-2Z7dXdNGFobw6oZ8tKBK1YNAW-tROBfXZruqcru-KWSUimWnBUAwJN9UxigbnFSKArDvskrWKKa8ABXSwC_z7p5iRRUfb_4M9kCRrbbLXwGb_FkBC0TOkKzVdx1Bx2tB7kEfplbk/s1600-h/alphabetic.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 160px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiABa-2Z7dXdNGFobw6oZ8tKBK1YNAW-tROBfXZruqcru-KWSUimWnBUAwJN9UxigbnFSKArDvskrWKKa8ABXSwC_z7p5iRRUfb_4M9kCRrbbLXwGb_FkBC0TOkKzVdx1Bx2tB7kEfplbk/s320/alphabetic.jpg" alt="" id="BLOGGER_PHOTO_ID_5262622755089567218" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTXmyEnEvcj6rxMgb6hJl0HpOGHSEUtyuAJgbt5acpobpYry1EoqMQQNCDY1mzDkS1_mGwHdmugwcrh9KA8_6EfwBEAdFWD1oFr8AP3SA2Zz74p7w5MFME6B4sqJnc3Z5f6pSMN24YN4I/s1600-h/categorized.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 163px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTXmyEnEvcj6rxMgb6hJl0HpOGHSEUtyuAJgbt5acpobpYry1EoqMQQNCDY1mzDkS1_mGwHdmugwcrh9KA8_6EfwBEAdFWD1oFr8AP3SA2Zz74p7w5MFME6B4sqJnc3Z5f6pSMN24YN4I/s320/categorized.jpg" alt="" id="BLOGGER_PHOTO_ID_5262624046740994002" border="0" /></a><br /><br /><span style="color: rgb(51, 102, 255); font-weight: bold;"><br />2. Form Layout</span><br /><br />Untuk menentukan posisi form, cukup dengan menggeser gambar form sesuai dengan yang kita kehendaki.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRFgZpI7YiNGrZupsR-sSFZfVJ5xXcOsaj4Yz_ZmtyFK3_fEb2GheJftcVkMOsKUMZz1OpyixYqmoVSWs0OAm8nklIaJ5owgJwooUOYU0qV4GOGUTviqkm0F3A_FrD_CbmU2WdQ_33Nv0/s1600-h/New+Picture+%283%29.bmp"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 317px; height: 290px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRFgZpI7YiNGrZupsR-sSFZfVJ5xXcOsaj4Yz_ZmtyFK3_fEb2GheJftcVkMOsKUMZz1OpyixYqmoVSWs0OAm8nklIaJ5owgJwooUOYU0qV4GOGUTviqkm0F3A_FrD_CbmU2WdQ_33Nv0/s320/New+Picture+%283%29.bmp" alt="" id="BLOGGER_PHOTO_ID_5262967916316795522" border="0" /></a><br /><br />Cara lain untuk menentukan posisi form adalah dengan cara klik kanan pada gambar form, selanjutnya pilih menu. Adapun menu tersebut adalah:<br /><span style="font-style: italic;">- Resolution Guides</span><br />Menampilkan garis panduan resolusi layar monitor.<br />- <span style="font-style: italic;">Starup Position</span><br />Menentukan posisi form pada saat aplikasi dijalankan<br />- <span style="font-style: italic;">Dockable</span><br />Membuat Form Layout Windows bersipat menempel pada jendela lainnya<br />- <span style="font-style: italic;">Hide</span><br />Menyembunyikan Form Layout Window. Sedangkan untuk menampilkannya, klik menubar View-->Form Layout Window<br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-69990873342447506162008-10-28T20:51:00.031+07:002008-11-16T18:50:43.503+07:00Tipe Data Visual Basic<div style="text-align: justify;">Dalam membuat suatu aplikasi terkadang kita memasukkan sebuah nilai sementara dalam suatu proses perhitungan. Nilai tersebut dimasukkan dalam suatu variabel dan variabel itu sendiri memiliki nama dan tipe data.<br /></div><div style="text-align: justify;">Data dan program dalam Visual Basic saling berkaitan erat, dimana data adalah nilai yang dibutuhkan dalam program, sedangkan program merupakan instruksi-instruksi untuk memanipulasi data.</div><div style="text-align: center;" class="fullpost"><div style="text-align: left;"><br /><div style="text-align: justify;">Di dalam membuat program aplikasi dengan Visual Basic tidak terlepas dengan jenis data. Karena data adalah nilai yang dibutuhkan dalam pembuatan aplikasi. Kita dapat menentukan jenis data sesuai dengan kebutuhan yang diinginkan. Pemilihan jenis data yang tepat akan dapat berguna untuk menghemat memori, meningkatkan kecepatan proses, ketelitian dalam perhitungan dan lain-lain. Jenis tipe data tersebut adalah sbb:<br /></div><br /><table style="border-collapse: collapse; width: 347pt;" border="2" cellpadding="2" cellspacing="0" width="462"><col style="width: 35pt;" width="47"> <col style="width: 142pt;" width="189"> <col style="width: 170pt;" width="226"> <tbody><tr style="height: 15.75pt;" height="21"> <td class="xl66" style="height: 15.75pt; width: 35pt; text-align: center;" width="47" height="21"> <span style="font-weight: bold;">Tipe</span></td> <td class="xl66" style="border-left: medium none; width: 142pt; text-align: center;" width="189"> <span style="font-weight: bold;">Keterangan </span><br /><span style="font-weight: bold;"> (Tipe Data)</span></td> <td class="xl66" style="border-left: medium none; width: 170pt; text-align: center;" width="226"> <span style="font-weight: bold;"> Range</span></td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="border-top: medium none; height: 15.75pt;" height="21">Integer</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">Numerik berupa bilangan bulat</td> <td class="xl67" style="border-top: medium none; border-left: medium none;">-32768<span style=""> </span>s/d 32767</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl66" style="border-top: medium none; height: 15.75pt;" height="21">Long</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">Numerik<span style=""> </span>berupa bilangan bulat range besar</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">-2147483 s/d 2147483</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl66" style="border-top: medium none; height: 15.75pt;" height="21">Single</td> <td class="xl70" style="border-left: medium none;">Merupakan jenis data numerik</td> <td class="xl65" style="border-left: medium none;">-3.402823E+38 s/d 3.402823E+38</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="border-top: medium none; height: 15.75pt;" height="21">Double</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">Numerik dengan range nilai yang sangat besar</td> <td class="xl65" style="border-left: medium none;">-1.79769313486232E+308 s/d 1.79769313486232E+308</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="height: 15.75pt;" height="21">Currency</td> <td class="xl65" style="border-left: medium none;">Digunakan untuk menyimpan nilai mata uang</td> <td class="xl65" style="border-left: medium none;">-922337203685477.5808 s/d 922337203685477.5808</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="height: 15.75pt;" height="21">String</td> <td class="xl65" style="border-left: medium none;">Memiliki nilai alfa numerik (angka,huruf & karakter)</td> <td class="xl69" style="border-left: medium none;">0 s/d 2 milyar karakter</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl68" style="height: 15.75pt;" height="21">Byte</td> <td class="xl67" style="border-left: medium none;">Tipe data berupa nilai bulat positif</td> <td class="xl67" style="border-left: medium none;">0 s/d 225</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="border-top: medium none; height: 15.75pt;" height="21">Boolean</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">Tipe data dengan dua buah nilai yaitu true/false</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">True (benar) atau False (salah)</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl66" style="height: 15.75pt;" height="21">Date</td> <td class="xl65" style="border-left: medium none;">Digunakan untuk menyimpan Tanggal dan Jam</td> <td class="xl65" style="border-left: medium none;">1 Januari 100 s/d<span style=""> </span>31 Desember 9999</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl72" style="border-top: medium none; height: 15.75pt;" height="21">Object</td> <td class="xl65" style="border-left: medium none;">Untuk menyimpan objek. Mis: Form,Kontrol dll</td> <td class="xl71" style="border-left: medium none;">Referensi Objek</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl66" style="height: 15.75pt;" height="21">Variant</td> <td class="xl67" style="border-left: medium none;">Berisi segala macam jenis data yang berbeda</td> <td class="xl67" style="border-left: medium none;">Null, Error dan seluruh tipe data yang lain</td> </tr> </tbody></table><br /><br /></div></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-132734526478815832008-10-20T22:07:00.008+07:002008-11-16T18:50:03.309+07:00Tool BarTool Bar pada VB 6.0 terdiri dari Tool Bar standard, Tool Bar Debug, Tool Bar Edit dll. Tool Bar merupakan cara cepat dalam menjalankan suatu perintah, karena tombol-tombol yang terdapat pada Tool Bar merupakan perwakilan dari suatu perintah tertentu.<br /><br /><div style="text-align: justify;">Tool Bar aktif pada saat kita menjalankan VB 6.0 adalah Tool Bar standard.<br /><br />Berikut ini akan saya jelaskan fungsi masing-masing:<br /></div><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA_jcf9BgPCd2CI80RbRk8P6phcrZHIRhSITrjPUygmv-Q3ty2QsFnOVMQm5usUa4oXsGd-5mGAzwm07P1r2yUuTqCLY-Lntu2mjsWU_HdiClioGuNKh5-Y_imud95UMOtU7uOxbuZTj8/s1600-h/tool+bar.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA_jcf9BgPCd2CI80RbRk8P6phcrZHIRhSITrjPUygmv-Q3ty2QsFnOVMQm5usUa4oXsGd-5mGAzwm07P1r2yUuTqCLY-Lntu2mjsWU_HdiClioGuNKh5-Y_imud95UMOtU7uOxbuZTj8/s400/tool+bar.jpg" alt="" id="BLOGGER_PHOTO_ID_5259264080158529810" border="0" /></a><br /><br /><div class="fullpost"><br /><div style="text-align: justify;"><strong style="color: rgb(51, 102, 255);">1. Add Project</strong><br /><br />Menambahkan proyek baru pada project baru pada project yang ada<br /><br /><strong style="color: rgb(51, 102, 255);">2. Add Item</strong><br /><br />Menambahkan objek atau komponen kedalam form<br /><br /><strong style="color: rgb(51, 102, 255);">3. Menu Editor</strong><br /><br />Menampilkan Menu Editor untuk merubah tampilan menu<br /><br /><strong style="color: rgb(51, 102, 255);">4. Open Project</strong><br /><br />Membuka project yang pernah dibuat<br /><br /><strong style="color: rgb(51, 102, 255);">5. Save Project</strong><br /><br />Menyimpan project yang kita buat ke dalam komputer<br /><br /><strong style="color: rgb(51, 102, 255);">6. Cut</strong><br /><br />Memotong elemen yang dipilih pada layar<br /><br /><strong style="color: rgb(51, 102, 255);">7. Copy</strong><br /><br />Menduplikat atau mengcopy elemen yang dipilih<br /><br /><strong style="color: rgb(51, 102, 255);">8. Paste</strong><br /><br />Menempel elemen yang dipilih dengan perintah cut atau copy<br /><br /><strong style="color: rgb(51, 102, 255);">9. Undo</strong><br /><br />Mengembalikan perintah terakhir<br /><br /><strong style="color: rgb(51, 102, 255);">10. Redo</strong><br /><br />Mengembalikan perintah yang dilakukan undo<br /><br /><strong style="color: rgb(51, 102, 255);">11. Find</strong><br /><br />Yang ini saya kurang paham, tolongin dong<br /><br /><strong style="color: rgb(51, 102, 255);">12. Start</strong><br /><br />Menjalankan project yang dibuat dalam VB 6.0<br /><br /><strong style="color: rgb(51, 102, 255);">13. Break</strong><br /><br />Menghentikan sementara project yang dijalankan<br /><br /><strong style="color: rgb(51, 102, 255);">14. End</strong><br /><br />Mengakhiri program<br /><br /><strong style="color: rgb(51, 102, 255);">15. Project Explorer</strong><br /><br />Mengaktifkan jendela explorer<br /><br /><strong style="color: rgb(51, 102, 255);">16. Properties Windows</strong><br /><br />Mengaktifkan jendela properties<br /><br /><strong style="color: rgb(51, 102, 255);">17. Form Layout Windows</strong><br /><br />Mengaktifkan jendela form layout<br /><br /><strong style="color: rgb(51, 102, 255);">18. Object Browser</strong><br /><br />Menampilkan jendela objek browser<br /><br /><strong style="color: rgb(51, 102, 255);">19. Tool Box</strong><br /><br />Mengaktifkan jendela Tool Box<br /><br /><strong style="color: rgb(51, 102, 255);">20. Data View Window</strong><br /><br />Mengaktifkan jendela Data View<br /><br /><strong style="color: rgb(51, 102, 255);">21. Visual Component Manager</strong><br /><br />Mengaktifkan jendela View Component<br /></div><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-77905922799279862912008-10-20T01:34:00.008+07:002008-11-16T18:48:31.721+07:00Tool Box<div style="text-align: justify;">Tool Box merupakan jendela yang sangat penting untuk pembuatan suatu program applikasi pada VB 6.0. Dari Tool Box ini kita dapat mengambil objek-objek yang akan ditempatkan pada form untuk membentuk suatu tampilan antar muka (user inteface).<br /></div><div style="text-align: justify;"><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvyX_JDLLbsDpZshCBLYyJRXFiydtskEuKjChvWaOMEphKlTCMN6jg0zQURCy-6XweNUEVh1qSveHYpbfCNpIr7Jp_Zzz3xbb-BWiKk2fe_BJ-bjgiRnnfbW6sPhKBjVmwiRcg2w1Dpwc/s1600-h/tool+box+copy.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvyX_JDLLbsDpZshCBLYyJRXFiydtskEuKjChvWaOMEphKlTCMN6jg0zQURCy-6XweNUEVh1qSveHYpbfCNpIr7Jp_Zzz3xbb-BWiKk2fe_BJ-bjgiRnnfbW6sPhKBjVmwiRcg2w1Dpwc/s400/tool+box+copy.jpg" alt="" id="BLOGGER_PHOTO_ID_5258935880057692018" border="0" /></a><br /><br /></div><div class="fullpost"><div style="text-align: justify;"><br /></div><strong style="color: rgb(51, 102, 255);">Pointer</strong><br /><br />Bukan merupakan suatu kontrol, icon ini digunakan pada saat memilih kontrol yang sudah ada pada form.<br /><br /><strong style="color: rgb(51, 102, 255);">Picture Box</strong><br /><br />Adalah suatu kontrol yang dipakai untuk menampilkan gambar (image) dengan format BMP, DIB (bitmap), ICO(icon), CUR (cursor), WMF (metafile), EMF (enhanced metafile), GIF dan JPG.<br /><br /><strong style="color: rgb(51, 102, 255);">Label</strong><br /><br />Adalah kontrol yang digunakan untuk menampilkan teks yang tidak dapat dimodifikasi. oleh pemakai<br /><br /><strong style="color: rgb(51, 102, 255);">Text Box</strong><br /><br />Adalah kontrol yang mengandung string yang dapat dimodifikasi oleh pemakai.<br /><br /><strong style="color: rgb(51, 102, 255);">Frame</strong><br /><br />Adalah kontrol yang digunakan sebagai kontainer bagi kontrol lainnya.<br /><br /><strong style="color: rgb(51, 102, 255);">Command Button</strong><br /><br />Adalah kontrol yang digunakan untuk membangkitkan event proses tertentu ketika diklik oleh pemakai.<br /><br /><strong style="color: rgb(51, 102, 255);">Check Box</strong><br /><br />Adalah kontrol yang digunakan untuk memilih. Isinya yes/no atau true/false<br /><br /><strong style="color: rgb(51, 102, 255);">Option Button</strong><br /><br />Adalah kontrol yang digunakan sebagai pilihan terhadap beberapa opsi yang hanya dapat dipilih satu saja. Cth: Pilihan jenis kelamin.<br /><br /><strong style="color: rgb(51, 102, 255);">List Box</strong><br /><br />Adalah kontrol yang mengandung beberapa item, dan pemakai dapat memilih dari satu.<br />Cth: Pilihan daftar belanja.<br /><br /><strong style="color: rgb(51, 102, 255);">Combo Box</strong><br /><br />Adalah kontrol kombinasi antara Text Box dan List Box dimana input data dapat dilakukan melalui pengertikan atau pemilihan.<br /><br /><strong style="color: rgb(51, 102, 255);">HScrollbar dan VScrollbar</strong><br /><br />Adalah kontrol yang digunakan untuk membentuk scrollbar berdiri sendiri.<br /><br /><strong style="color: rgb(51, 102, 255);">Timer</strong><br /><br />Adalah kontrol non visual yang digunakan untuk proses backround yang diaktifkan berdasarkan interval waktu tertentu.<br /><br /><strong style="color: rgb(51, 102, 255);">Drive List Box, Directory List Box, File List Box</strong><br /><br />Adalah kontrol yang digunakan untuk membentuk kotak dialog yang berkaitan dengan file-file.<br /><br /><strong style="color: rgb(51, 102, 255);">Shape dan Line</strong><br /><br />Adalah kontrol yang digunakan untuk menampilkan bentuk seperti garis, lingkaran, oval dll.<br /><br /><strong style="color: rgb(51, 102, 255);">Image</strong><br /><br />Adalah kontrol yang menyerupai image box, tetapi tidak bisa difungsikan sebagai kontainer bagi kontrol lainnya. Resource kontrol image adalah lebih kecil dibandingkan dengan Picture Box<br /><br /><strong style="color: rgb(51, 102, 255);">Data</strong><br /><br />Adalah kontrol yang digunakan untuk data binding (mengikat data)<br /><br /><strong style="color: rgb(51, 102, 255);">OLE</strong><br /><br />Adalah kontrol yang digunakan sebagai tempat bagi program eksternal seperti Excel, Word dll<br /><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com1tag:blogger.com,1999:blog-8829457739871136174.post-62450538137582552922008-10-19T00:05:00.010+07:002008-11-16T18:47:37.251+07:00Mengenal Elemen Utama Visual Basic 6.0Gambar di bawah ini memperlihatkan elemen utama dari VB 6.0. Tampilan tersebut adalah tampilan default pada jendela applikasi VB 6.0<br /><br /><br /><div style="text-align: justify;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhugQSph_jPAvrejC1kINwnsTe5ech3WusHD0WA_3InJUJxyZ9sEKNET2XiSw4EBl0uVm0wU4L1YQj7PxU0iYpWNkC_hCoeHYDv3EnSb-DmR83q1qb7Sjx9m7VJvD8uHwZk0mA8vN1Tho/s1600-h/Tampilan+VB+60+copy22.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhugQSph_jPAvrejC1kINwnsTe5ech3WusHD0WA_3InJUJxyZ9sEKNET2XiSw4EBl0uVm0wU4L1YQj7PxU0iYpWNkC_hCoeHYDv3EnSb-DmR83q1qb7Sjx9m7VJvD8uHwZk0mA8vN1Tho/s400/Tampilan+VB+60+copy22.JPG" alt="" id="BLOGGER_PHOTO_ID_5258570596030402674" border="0" /></a><strong style="color: rgb(51, 102, 255);">1. Title Bar</strong><br /></div><div class="fullpost"><div style="text-align: justify;"><br />Title Bar ini menunjukkan judul program atau project yang sedang kita buat<br /><br /><strong style="color: rgb(51, 102, 255);">2. Menu Bar</strong><br /><br />Menu bar pada VB 6.0 terdiri dari beberapa pilihan yang berfungsi untuk melakukan tugas dan kegiatan tertentu. Menu bar terdiri dari File, Edit, View, Project, Format, Debug, Run, Query, Diagram, Tools, Add Ins, Window dan Help<br /><br /><strong style="color: rgb(51, 102, 255);">3. Tool Bar</strong><br /><br />Tool Bar pada VB 6.0 terdiri dari Tool Bar standard, Tool Bar Debug, Tool Bar Edit dll. Tool Bar merupakan cara cepat dalam menjalankan suatu perintah, karena tombol-tombol yang terdapat pada Tool Bar merupakan perwakilan dari suatu perintah tertentu.<br />Tool Bar aktif pada saat kita menjalankan VB 6.0 adalah Tool Bar standard.<br /><br /><strong style="color: rgb(51, 102, 255);">4. Tool Box</strong><br /><br />Tool Box adalah salah satu fasilitas pada VB 6.0 yang berisi objek dan kontrol yang diletakkan pada form. Kontrol atau objek ini merupakan jembatan penghubung antara programmer dan program applikasi.<br /><br /><strong style="color: rgb(51, 102, 255);">5. Project</strong><br /><br />Project merupakan salah satu jendela pada VB 6.0 yang berisi semua file dalam applikasi yang kita buat. Project ini berisi gambaran dari semua modul yang terdapat dalam applikasi yang kita buat.<br /><br /><strong style="color: rgb(51, 102, 255);">6. Form</strong><br /><br />Form merupakan jendela utama dalam bekerja dengan VB 6.0. pada form inilah kita akan menempatkan beberapa objek seperti tombol perintah, gambar, label dan teks. Objek yang ditempatkan pada form akan ditaampilkan pada layar windows.<br /><br /><strong style="color: rgb(51, 102, 255);">7. Properties</strong><br /><br />Properties merupakan salah satu jendela yang berisi daftar properti properti objek yang sedang terpilih. Sebagai contoh kita dapat merubah warna form, ukuran tombol-tombol dll dari jendela ini.<br /></div><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0tag:blogger.com,1999:blog-8829457739871136174.post-76733991828689343352008-10-18T22:58:00.015+07:002008-11-16T18:46:38.855+07:00Pengenalan Visual Basic 6.0Visual Basic merupakan salah satu bahasa pemrograman yang bekerja dalam lingkup Microsoft Windows yang banyak digunakan saat ini. Dalam pengembangan applikasi, Visual Basic menggunakan pendekatan visual untuk merancang user interface dalam bentuk form. Sedangkan untuk pengkodingan menggunakan bahasa BASIC yang mudah dipelajari.<br /><div style="text-align: justify;"><br /></div><div class="fullpost"><div style="text-align: justify;">Visual Basic atau yang lebih akrab disebut dengan VB saat ini telah menjadi tool yang terkenal bagi pemula maupun para develover. Beberapa kemampuan VB antara lain:<br />1. Membuat program applikasi berbasis Windows<br />2. Membuat objek pembantu program<br />3. Menguji program yang bermuara pada program akhir file berekstensi EXE yang<br />langsung bisa dijalankan<br /><br /><strong>Menjalankan Visual Basic</strong><br /><br />Seperti yang saya utarakan diatas VB ini adalah applikasi yang berbasis Windows, oleh karena itu untuk menjalankannya terlebih dahulu harus mengaktifkan Windows. Dengan langkah sebagai berikut: <em>(Pastikan VB 6.0 sudah terinstal)</em><br /><br />1. Klik tombol <strong>START</strong>, arahkan kursor ke <strong>All Programs</strong><br />2. Pilih Microsoft Visual Basic 6.0, lalu akan telihat kotak dialog seperti dibawah ini<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoVUEURq5xilQN9_CnY47vjXyzH236IjDTqPS99a9VIV5wp6vT949SyYXcMp_PebRVbYq_N7XTDoktt9sRGreDD8B9pR1p4FzQMjUzoARBSiPsEHx003RCNxEx_UfvPnSGsPCI6f1UXlA/s1600-h/New+Picture+%281%29.bmp"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoVUEURq5xilQN9_CnY47vjXyzH236IjDTqPS99a9VIV5wp6vT949SyYXcMp_PebRVbYq_N7XTDoktt9sRGreDD8B9pR1p4FzQMjUzoARBSiPsEHx003RCNxEx_UfvPnSGsPCI6f1UXlA/s400/New+Picture+%281%29.bmp" alt="" id="BLOGGER_PHOTO_ID_5258539982550793618" border="0" /></a><br /><br />3. Pada kotak dialog, pilih Standard Exe, kemudian Open. Maka di layar akan muncul lembar kerja project dari Microsoft Visual Basic 6.0<br /><br /></div><br /></div>Dedy E Hutaurukhttp://www.blogger.com/profile/08474862892122214886noreply@blogger.com0