Знаю, что код надо писать, и написал, но чото не работает.
Надо ещё написать, чтобы сохраняло и открывало рисунки, но не знаю как.
Private Sub lblBlack_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblBlue_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblBrown_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblDarkGreen_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblGreen_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblOrange_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblRed_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblSilver_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblSky_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblViolet_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblWhite_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub lblYellow_Click()
Beep
pctPaint.ForeColor = lblBlack.BackColor
End Sub
Private Sub mnuExit_Click()
Dim R As Integer
R = MsgBox("Are you sure want to exit from the MiniPaint?", vbYesNo + vbQuestion + vbDefaultButton2, "Exit MiniPaint?"
If R = vbYes Then End
End Sub
Private Sub pctPaint_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Draw = True
pctPaint.CurrentX = X
pctPaint.CurrentY = Y
End If
End Sub
Private Sub pctPaint_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Draw Then
pctPain.Line -(X, Y)
pctPain.Line -(X, Y), pctPaint.ForeColor
End If
End Sub
Private Sub pctPaint_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then Drow = False
End Sub
Вместо Beep попробуй
Private Declare Function MuzloPlay Lib "winmm.dll" _
Alias "sndPlaySoundA" (ByVal lpszSoundName As String, _
ByVal uFlags As Long) As Long
MuzloPlay "Муз", 1
Муз- это файл .wav, где чел матом орёт, будет круче.