<div style='background-color: none transparent;'></div>

Pages

Activity 5













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
Share this article :

No comments :

Post a Comment

 
Copyright © 2011. datasavvy . All Rights Reserved
Company Info | Contact Us | Privacy policy | Term of use | Widget | Advertise with Us | Site map
Template Modify by Creating Website . Inpire by Darkmatter Rockettheme Proudly powered by Blogger