Flaming Arrow Glitter Purple

Rabu, 04 September 2013

Visual Basic ( Shape and Line Activity )

 

Masih tahap sederhana kali ini kita akan berkenalan dengan menu Shape n Line untuk menampilkan bentuk ukuran dan garis yang di inginkan,semakin lengkap aja pembahasan visual basic kita semoga bermanfaat untuk sehabat2 Blogger Yah..
Semangat3x..
RezpeC N Peace !!!

CODE

Private Sub cboMenu_Click()
Select Case cboMenu.ListIndex
Case 0
Line1.BorderStyle = 0
Case 1
Line1.BorderStyle = 1
Case 2
Line1.BorderStyle = 2
Case 3
Line1.BorderStyle = 3
Case 4
Line1.BorderStyle = 4
Case 5
Line1.BorderStyle = 5
Case 6
Line1.BorderStyle = 6
End Select
End Sub

Private Sub cmdExit_Click()
If MsgBox("Close Applet?", vbQuestion + vbYesNo, "Confirm Exit") = vbYes Then
    End
End If
End Sub

Private Sub Form_Load()
lstMenu.AddItem "Rectangle"
lstMenu.AddItem "Square"
lstMenu.AddItem "Oval"
lstMenu.AddItem "Circle"
lstMenu.AddItem "Rounded Rectangle"
lstMenu.AddItem "Rounded Square"

cboMenu.AddItem "Transparent"
cboMenu.AddItem "Solid"
cboMenu.AddItem "Dash"
cboMenu.AddItem "Dot"
cboMenu.AddItem "Dash Dot"
cboMenu.AddItem "Dash Dot Dot"
cboMenu.AddItem "Inside Solid"
End Sub

Private Sub lstMenu_Click()
Select Case lstMenu.ListIndex
Case 0
shpDisplay.Shape = 0
Case 1
shpDisplay.Shape = 1
Case 2
shpDisplay.Shape = 2
Case 3
shpDisplay.Shape = 3
Case 4
shpDisplay.Shape = 4
Case 5
shpDisplay.Shape = 5
End Select
End Sub

Ganti teks ini dengan informasi mengenai permalink atau apapun di sini.


Tidak ada komentar:

Posting Komentar

facebook komentar