I am trying to do the following:
1) Right-Click on the form's surface and...
2) Select (2) PictureBoxes then...
3) Remove the images from those PBs.
The code I have now which is obviously not working is as follows:
If there is a way to do this I would like to know how.Code:Private Sub Main_RightClick(sender As Object, e As MouseEventArgs) Handles Me.Click Dim PB1 As New PictureBox Dim PB2 As New PictureBox If Windows.Forms.MouseButtons.Right Then If PB1 Is pbA1 Then If PB2 Is pbLayoutLeft Then 'put code here ACards.RemoveAt(0) destCardLeft.RemoveAt(destCardLeft.Count - 1) End If End If End If End Sub





Reply With Quote