1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| Private Sub styleFlat1(ByVal objPicture As PictureBox)
With objPicture
.AutoRedraw = True
.BorderStyle = vbBSNone
.ScaleMode = vbPoints
objPicture.Line (0, 0)-(.ScaleWidth, 0), &H808080
objPicture.Line (0, 0)-(0, .ScaleWidth), &H808080
objPicture.Line (.ScaleWidth - 1, .ScaleHeight - 1)-(.ScaleWidth - 1, 0), vbWhite
objPicture.Line (.ScaleWidth - 1, .ScaleHeight - 1)-(0, .ScaleHeight - 1), vbWhite
End With
End Sub
Private Sub styleFlat2(ByVal objPicture As PictureBox)
With objPicture
.AutoRedraw = True
.BorderStyle = vbBSNone
.ScaleMode = vbPoints
objPicture.Line (0, 0)-(.ScaleWidth, 0), vbWhite
objPicture.Line (0, 0)-(0, .ScaleWidth), vbWhite
objPicture.Line (.ScaleWidth - 1, .ScaleHeight - 1)-(.ScaleWidth - 1, 0), &H808080
objPicture.Line (.ScaleWidth - 1, .ScaleHeight - 1)-(0, .ScaleHeight - 1), &H808080
End With
End Sub
Private Sub Form_Load()
'tinggal panggil prosedure styleFlat1 & styleFlat2 disini
Call styleFlat1(Picture4)
Call styleFlat2(Picture5)
End Sub
|