Wednesday, May 27, 2015

Short cut pada key bords

More than 100 Keyboard Shortcuts must read & Share
Keyboard Shortcuts (Microsoft Windows)
1. CTRL+C (Copy)
2. CTRL+X (Cut)
... 3. CTRL+V (Paste)
4. CTRL+Z (Undo)
5. DELETE (Delete)
6. SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin)
7. CTRL while dragging an item (Copy the selected item)
8. CTRL+SHIFT while dragging an item (Create a shortcut to the selected item)
9. F2 key (Rename the selected item)
10. CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next word)
11. CTRL+LEFT ARROW (Move the insertion point to the beginning of the previous word)
12. CTRL+DOWN ARROW (Move the insertion point to the beginning of the next paragraph)
13. CTRL+UP ARROW (Move the insertion point to the beginning of the previous paragraph)
14. CTRL+SHIFT with any of the arrow keys (Highlight a block of text)
SHIFT with any of the arrow keys (Select more than one item in a window or on the desktop, or select text in a document)
15. CTRL+A (Select all)
16. F3 key (Search for a file or a folder)
17. ALT+ENTER (View the properties for the selected item)
18. ALT+F4 (Close the active item, or quit the active program)
19. ALT+ENTER (Display the properties of the selected object)
20. ALT+SPACEBAR (Open the shortcut menu for the active window)
21. CTRL+F4 (Close the active document in programs that enable you to have multiple documents opensimultaneously)
22. ALT+TAB (Switch between the open items)
23. ALT+ESC (Cycle through items in the order that they had been opened)
24. F6 key (Cycle through the screen elements in a window or on the desktop)
25. F4 key (Display the Address bar list in My Computer or Windows Explorer)
26. SHIFT+F10 (Display the shortcut menu for the selected item)
27. ALT+SPACEBAR (Display the System menu for the active window)
28. CTRL+ESC (Display the Start menu)
29. ALT+Underlined letter in a menu name (Display the corresponding menu) Underlined letter in a command name on an open menu (Perform the corresponding command)
30. F10 key (Activate the menu bar in the active program)
31. RIGHT ARROW (Open the next menu to the right, or open a submenu)
32. LEFT ARROW (Open the next menu to the left, or close a submenu)
33. F5 key (Update the active window)
34. BACKSPACE (View the folder onelevel up in My Computer or Windows Explorer)
35. ESC (Cancel the current task)
36. SHIFT when you insert a CD-ROMinto the CD-ROM drive (Prevent the CD-ROM from automatically playing)
Dialog Box - Keyboard Shortcuts
1. CTRL+TAB (Move forward through the tabs)
2. CTRL+SHIFT+TAB (Move backward through the tabs)
3. TAB (Move forward through the options)
4. SHIFT+TAB (Move backward through the options)
5. ALT+Underlined letter (Perform the corresponding command or select the corresponding option)
6. ENTER (Perform the command for the active option or button)
7. SPACEBAR (Select or clear the check box if the active option is a check box)
8. Arrow keys (Select a button if the active option is a group of option buttons)
9. F1 key (Display Help)
10. F4 key (Display the items in the active list)
11. BACKSPACE (Open a folder one level up if a folder is selected in the Save As or Open dialog box)

Microsoft Natural Keyboard Shortcuts
1. Windows Logo (Display or hide the Start menu)
2. Windows Logo+BREAK (Display the System Properties dialog box)
3. Windows Logo+D (Display the desktop)
4. Windows Logo+M (Minimize all of the windows)
5. Windows Logo+SHIFT+M (Restorethe minimized windows)
6. Windows Logo+E (Open My Computer)
7. Windows Logo+F (Search for a file or a folder)
8. CTRL+Windows Logo+F (Search for computers)
9. Windows Logo+F1 (Display Windows Help)
10. Windows Logo+ L (Lock the keyboard)
11. Windows Logo+R (Open the Run dialog box)
12. Windows Logo+U (Open Utility Manager)
13. Accessibility Keyboard Shortcuts
14. Right SHIFT for eight seconds (Switch FilterKeys either on or off)
15. Left ALT+left SHIFT+PRINT SCREEN (Switch High Contrast either on or off)
16. Left ALT+left SHIFT+NUM LOCK (Switch the MouseKeys either on or off)
17. SHIFT five times (Switch the StickyKeys either on or off)
18. NUM LOCK for five seconds (Switch the ToggleKeys either on or off)
19. Windows Logo +U (Open Utility Manager)
20. Windows Explorer Keyboard Shortcuts
21. END (Display the bottom of the active window)
22. HOME (Display the top of the active window)
23. NUM LOCK+Asterisk sign (*) (Display all of the subfolders that are under the selected folder)
24. NUM LOCK+Plus sign (+) (Display the contents of the selected folder)
MMC Console keyboard shortcuts
1. SHIFT+F10 (Display the Action shortcut menu for the selected item)
2. F1 key (Open the Help topic, if any, for the selected item)
3. F5 key (Update the content of all console windows)
4. CTRL+F10 (Maximize the active console window)
5. CTRL+F5 (Restore the active console window)
6. ALT+ENTER (Display the Properties dialog box, if any, for theselected item)
7. F2 key (Rename the selected item)
8. CTRL+F4 (Close the active console window. When a console has only one console window, this shortcut closes the console)
Remote Desktop Connection Navigation
1. CTRL+ALT+END (Open the Microsoft Windows NT Security dialog box)
2. ALT+PAGE UP (Switch between programs from left to right)
3. ALT+PAGE DOWN (Switch between programs from right to left)
4. ALT+INSERT (Cycle through the programs in most recently used order)
5. ALT+HOME (Display the Start menu)
6. CTRL+ALT+BREAK (Switch the client computer between a window and a full screen)
7. ALT+DELETE (Display the Windows menu)
8. CTRL+ALT+Minus sign (-) (Place a snapshot of the active window in the client on the Terminal server clipboard and provide the same functionality as pressing PRINT SCREEN on a local computer.)
9. CTRL+ALT+Plus sign (+) (Place asnapshot of the entire client window area on the Terminal server clipboardand provide the same functionality aspressing ALT+PRINT SCREEN on a local computer.)
Microsoft Internet Explorer Keyboard Shortcuts
1. CTRL+B (Open the Organize Favorites dialog box)
2. CTRL+E (Open the Search bar)
3. CTRL+F (Start the Find utility)
4. CTRL+H (Open the History bar)
5. CTRL+I (Open the Favorites bar)
6. CTRL+L (Open the Open dialog box)
7. CTRL+N (Start another instance of the browser with the same Web address)
8. CTRL+O (Open the Open dialog box,the same as CTRL+L)
9. CTRL+P (Open the Print dialog box)
10. CTRL+R (Update the current Web page)
11. CTRL+W (Close the current window)

Sunday, May 10, 2015

DISAIN TERMOMETER DENGAN APLIKASI VB

Pada bagian ini anda dapat merancang disain manometernya dengan menggunakan Vertikal Scroll bar  atau Horisontal Scroll bar .    Dalam kasus yang dirancang di bagian ini yaitu manometer yang digerakkan dengan Vertikal Scroll bar yang digunakan untuk penurunan atau menaikan harga nilai pada termometer. Pada Tampilan Aplikasi ini berisikan 10 buah objek Label, 4 buah Objek Text, dan 1 buah Command Button.
Setelah merancang tampilan program aplikasi manometer (gambar 1) anda dapat merubah objek properti pada window properti seperti pada tabel 4.1.

Tabel 1. Propertie yang dirubah pada Windows Properties
Objek
Properti
Nilai
Form1
Caption
Manometer (Vertikal Scrool )
Label1
Caption
-100
Label2
Caption
-50
Label3
Caption
0
Label4
Caption
50
Label5
Caption
100
Label6
Caption
Font
Temperatur
20
Label7
Caption
Celsius
Label8
Caption
Farenheit
Label9
Caption
Reamur
Label10
Caption
Kelvin
Text1
Text
(kosongkan)
Text2
Text
(kosongkan)
Text3
Text
(kosongkan)
Text4
Text
(kosongkan)
Vertical Scrool bar
Max
Min
-100
100
Command1
Caption
&Keluar

Langkah berikutnya yaitu memasukkan kode yang diperlukan yaitu:
  • Klik ganda pada Vscroll1, lalu ketik kode program dibawah ini.
Private Sub VScroll1_Change()
Text1.Text = Str(VScroll1.Value)
Text2.Text = (9 / 5 * Text1.Text) + 32
Text3.Text = 4 / 5 * Text1.Text
Text4.Text = Text1.Text + 273
End Sub

  • Klik ganda pada tombol Keluar, lalu ketik kode program dibawah ini.

Private Sub Command1_Click()
End
End Sub

  • Aplikasi program telah dapat dijalankan dengan menekan tombol F5. Apabila Vscroll digerakkan maka akan tercetak angka-angka pada kolom-kolom text yang telah tersedia dan bila di klik tombol Keluar maka program akan tertutup seperti yang terlihat pada gambar 2.

Friday, May 8, 2015

APLIKASI PENGGUNAAN LIST BOX, COMBO BOX PADA PROGRAM VB

MEMBUAT PROGRAM APLIKASI DAFTAR KARYAWAN


A.    Metode List Box

ListDalam membuat aplikasi untuk pembuatan daftar karyawan anda dapat menggunakan metode List Box        .          Pada aplikasi ini anda dapat menambah atau mengurangi item pada List Box pada saat aplikasi program berjalan.
Langkah-langkah pembuatan program aplikasi ini adalah:
  1. Merancang interface yang akan dibuat
Untuk membuat interface aplikasi ini dibutuh objek dari Tool Box sebagai berikut: 1 buah List Box, 4 Label, 3 Text, 5 Command Button dibuat seperti pada gambar 1.


  1. Merubah Objek nilai tampilan
Untuk merubah tampilan dari objek program aplikasi dapat dilihat pada tabel 1.

Tabel 1. Propertie yang dirubah pada Windows Properties
Objek
Properti
Nilai
Form1
Caption
Metode List Box
Label1
Caption
Font
Karyawan Bengkel
20
Label2
Caption
Tambah :
Label3
Caption
Kurang :
Label4
Caption
Jumlah Karyawan :
Text1
Text
(kosongkan)
Text2
Text
(kosongkan)
Text3
Text
(kosongkan)
Command1
Caption
&Add
Command2
Caption
&Remove
Command3
Caption
&Count
Command4
Caption
Remove &All
Command5
Caption
E&xit


  1. Pembuatan Kode Program Aplikasi

Langkah-langkah yang harus dilakukan untuk pembuatan kode program adalah:
·         Klik ganda jendela Metode List Box, lalu ketikkan kode program dibawah ini

Private Sub Form_Load()
List1.AddItem "Amir"
End Sub

·         Klik ganda tombol Add, lalu ketikkan kode program dibawah ini

Private Sub Command1_Click()
List1.AddItem Text1.Text
End Sub

·         Klik ganda tombol Remove, lalu ketikkan kode program dibawah ini

Private Sub Command2_Click()
List1.RemoveItem (Text2.Text)
End Sub

·         Klik ganda tombol Count, lalu ketikkan kode program dibawah ini

Private Sub Command3_Click()
Text3.Text = List1.ListCount
End Sub

·         Klik ganda tombol Remove All, lalu ketikkan kode program dibawah ini

Private Sub Command4_Click()
List1.Clear
End Sub

·         Klik ganda tombol Exit, lalu ketikkan kode program dibawah ini

Private Sub Command5_Click()
End
End Sub

·         Program siap dijalankan dengan menekan tombol F5 atau Menu Utama dengan mengklik RUN. Apabila ditekan Add maka data bertambah, ditekan Remove akan berkurang, Count ditekan akan dijumlah, Remove All data dalam list akan dihapus semuanya


B.     Mengunakan Combo Box

Untuk membuat aplikasi program dengan Combo box ini ada beberapa pilihan yang dapat yaitu; Drop down, Simple dan Drop-Down List. Untuk menentukan jenis dari combo box ini dapat dilakukan pada property style.
1.      Drop-Down: kotak combo ini hanya akan ditampilkan stau baris saja. Kotak ini akan terbuka jika user mengklik tombol panah bawah. User juga dapat memasukkan atau mengetikkan nilai bagian atas kotak combo ini.
2.      Simple: kotak combo ini mirip dengan daftar pada list box, tetapi disini user bias mengetikkan nilai di bagian atas kotak combo ini.
3.      Drop Down List: Kotak combo ini hanya akan ditampilkan stau baris saja. Kotak ini terbuka bila user mengklik tombol panah bawah. User tidak dapat menambah atau mengetikkan nilai seperti pada Drop-Down Combo.

Latihan penggunaan Combo Box:
Pada latihan ini tampilan dari aplikasi program adalah seperti dibawah ini:
  1. Rancangan Tampilan.
Objek yang digunakan adalah: 3 buah Label, 3 buah Combo, 6 buah Text, dan 2 Command Button.

  1. Merubah Objek nilai tampilan
            Untuk merubah tampilan dari objek program aplikasi dapat dilihat pada tabel 2.

Tabel 2. Propertie yang dirubah pada Windows Properties Untuk ComboBox
Objek
Properti
Nilai
Form1
Caption
Macam-Macam Combo Box
Label1
Caption
Drop Down Combo
Label2
Caption
Simple Combo
Label3
Caption
Drop Down List
Text1
Text


Multi Line
User dapat menambah atau mengurangi data baru
True
Text2
Text


Multi Line
User dapat menambah atau mengurangi data baru
True
Text3
Text


Multi Line
User dapat menambah atau mengurangi data baru
True
Text4
Text
(kosongkan)
Text5
Text
(kosongkan)
Text6
Text
(kosongkan)
Command1
Caption
K&eluar
Command2
Caption
O&k
Combo1
Style
0-Drop Down Combo
Combo2
Style
1-Simple Combo
Combo3
Style
2-Drop Down List

  1. Pembuatan Kode Pemrograman
Langkah-langkahnya adalah sebagai berikut:
·         Klik ganda pada Form kemudian ketik kode-kode dibawah ini:
Private Sub Form_Load()

'untuk data combo1
Combo1.AddItem "Anton"
Combo1.AddItem "Amin"
Combo1.AddItem "Ahmad"
Combo1.AddItem "Adi"
Combo1.AddItem "Abdul"
Combo1.AddItem "Abdilla"

'Untuk data combo2
Combo2.AddItem "Anton"
Combo2.AddItem "Amin"
Combo2.AddItem "Ahmad"
Combo2.AddItem "Adi"
Combo2.AddItem "Abdul"
Combo2.AddItem "Abdilla"

'Untuk data combo3
Combo3.AddItem "Anton"
Combo3.AddItem "Amin"
Combo3.AddItem "Ahmad"
Combo3.AddItem "Adi"
Combo3.AddItem "Abdul"
Combo3.AddItem "Abdilla"
End Sub

·               Klik Ganda pada Command1, kemudian ketik kode dibawah ini:

Private Sub Command1_Click()
End
End Sub

·         Klik Ganda pada Command2, kemudian ketik kode dibawah ini:

Private Sub Command2_Click()
Text4.Text = Combo1.Text
Text5.Text = Combo2.Text
Text6.Text = Combo3.Text

End Sub

Monday, May 4, 2015

MEMBUAT PROGRAM BENTUK BANGUN DENGAN VB

Ket yang di perlukan untuk artikel ini gambar bentuk formnya dapat di sesuaikan pada tampilan gambar ... Selamat mencoba..



Untuk membuat bentuk bangun ini hal yang perlu diperhatikan adalah formula dari bangun tersebut.
A.    Bentuk Lingkaran
Dalam membuat program aplikasi bentuk lingkaran anda pertama kali membuat tampilannya terlebih dahulu seperti yang terlihat pada gambar 2.1

Langkah kedua yaitu merubah properties dari tampilan yang telah dibuat dengan jalan merubah nilai yang terdapat pada objek seperti terlihat pada tabel 2.1.

Tabel 2.1. Perubahan yang dilakukan pada windows properties

Objek
Properti
Nilai (Value)
Form1
Caption
Lingkaran
Command1
Caption
&Hitung
Command2
Caption
H&apus
Cammand3
Caption
K&eluar
Label1
Caption
Perhitungan Lingkaran
Label2
Caption
Diameter
Label3
Caption
Keliling
Label4
Caption
Luas
Text1
Text
(kosongkan)
Text2
Text
(kosongkan)
Text3
Text
(kosongkan)

Langkah ketiga yaitu membuat kode program aplikasi tetapi sebelumnya anda harus sudah mengetahui rumus-rumus yang akan digunakan untuk program aplikasi ini yaitu rumus keliling lingkaran dan Luas lingkaran serta tanda-tanda untuk operasi matematika (tabel 2.2).

Tabel 2.2. Operasi Matematika
Tanda Operasi Matematika Untuk Visual Basic 6.0
Keterangan
+
Penjumlahan
-
Pengurangan
/
Pembagian
*
Perkalian
^
Pangkat

Untuk rumus keliling lingkaran adalah (π  x diameter^2 ) / 4 dan rumus Luas lingkaran adalah  π  x diameter.
Pada tampilan program aplikasi yang anda buat diameter yang diisi terletak pada Text1, Keliling terletak pada Text2 dan Luas terletak pada Text3 maka rumus-rumus diatas berubah menjadi:
Untuk Keliling lingkaran berubah : Text2.Text = 3.14  * Text1.Text
Untuk Luas lingkaran berubah : Text3.Text = (3.14 * Text1.Text^2) / 4
Tahapan Untuk Membuat Kode program adalah

  1. Klik dua kali pada Command1 (Untuk Hitung)

Private Sub Command1_Click()
Text3.Text = ( 3.14* Text1.Text ^ 2) / 4   ‘Perhitungan Luas Lingkaran
Text2.Text = 3.14 * Text1.Text                          ‘Perhitungan Keliling Lingkaran
End Sub

  1. Klik dua kali pada Command2 (Untuk Hapus)

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub

  1. Klik dua kali pada Command3 (Untuk Keluar)

Private Sub Command3_Click()
End
End Sub


B.     Memodifikasi Kode Program

Untuk memodifikasi kode program berarti anda merubah tampilan program aplikasinya, untuk itu ubahlah apliksi diatas menjadi seperti dibawah ini. Yaitu dengan menambahkan komponen objek 1 Frame, 2 OptionButton dan 2 CheckBox.

 Atur propeti dalam objek tambahan sebagai berikut:
Objek
Properti
Nilai (Value)
Frame1
Caption
Pilihan
Option1
Caption
Biru
Option2
Caption
Hijau
Check1
Caption
Tebal
Check2
Caption
Miring

Objek Frame1 dibuat terlebih dahulu di form, dan selanjutnya Option dan Check di buat di dalam Frame1. Tujuan dari ini sebagi pilihan di program aplikasi.
Tambahkan Kode Program berikut ini:
  1. Klik Ganda pada Option1 kemudian ketik kode berikut:
Private Sub Option1_Click()
 Text1.ForeColor = vbBlue
 Text2.ForeColor = vbBlue
 Text3.ForeColor = vbBlue
End Sub

  1. Klik Ganda pada Option2 kemudian ketik kode berikut:
Private Sub Option2_Click()
 Text1.ForeColor = vbGreen
 Text2.ForeColor = vbGreen
 Text3.ForeColor = vbGreen
End Sub

  1. Klik Ganda pada Check1 kemudian ketik kode berikut:
Private Sub Check1_Click()
 Text1.FontBold = Check1.Value
 Text2.FontBold = Check1.Value
 Text3.FontBold = Check1.Value
End Sub

  1. Klik Ganda pada Check2 kemudian ketik kode berikut:
Private Sub Check2_Click()
 Text1.FontItalic = Check2.Value
 Text2.FontItalic = Check2.Value
 Text3.FontItalic = Check2.Value
End Sub

Kemudian simpan Form1, kemudian jalankan program aplikasi ini dan lihta hasilnya:

C.    Bentuk yang lain yang dapat dibuat


Dengan mengikuti langkah-langkah yang telah dilakukan anda dapat membuat perhitungan untuk bentuk lainnya. Tampilan dari perhitungan dapat anda buat dengan selera. Hal yang perlu di perhatikan adalah anda harus mengerti rumus dan perubahan rumus kedalam aplikasi program yang akan di buat pada visual basic 6.0.