Article ID: 140884
Article Last Modified on 1/8/2003
Property Value
-------- -----
AutoRedraw True
AutoSize True
BorderStyle 0-None
DrawMode 6-Invert
Private Sub Picture1_DblClick ()
Picture1.Line (0, 0)-(Picture1.width, Picture1.height), , BF
End Sub
NOTE: This code is necessary to avoid getting the bitmap stuck in
an inverted state because of Mouse messages being processed out of
order or from piling up due to fast clicking.
Private Sub Picture1_MouseDown (Button As Integer, Shift As Integer,
X As Single, Y As Single) ' Append to above line
Picture1.Line (0, 0)-(Picture1.width, Picture1.height), , BF
End Sub
Private Sub Picture1_MouseUp (Button As Integer, Shift As Integer,
X As Single, Y As Single) ' Append to above line.
Picture1.Line (0, 0)-(Picture1.width, Picture1.height), , BF
End Sub
Private Sub Picture1_KeyUp (KeyCode As Integer, Shift As Integer)
'* Check to see if the ENTER key was pressed. If so, restore
'* the picture image.
If KeyCode = 13 Then
Picture1.Line (0, 0)-(Picture1.width, Picture1.height), , BF
End If
End Sub
Private Sub Picture1_KeyDown (KeyCode As Integer, Shift As Integer)
'* Check to see if the ENTER key was pressed. If so, invert
'* the picture image.
If KeyCode = 13 Then
Picture1.Line (0, 0)-(Picture1.width, Picture1.height), , BF
End If
End Sub
Additional query words: 1.00 2.00 3.00 4.00 vb4win vb416
Keywords: KB140884