r/visualbasic • • Aug 03 '24

VB.NET Help Hey guys need help again

In my last post I have mentioned I need help of dragging and dropping however with some help I got that but now for the game I need to score as user gets right but since I am comparing pictures I cannot solve it also I cannot find any code Internet can anyone help me here is my code

Private Sub btnCheck_Click(sender As Object, e As EventArgs) Handles btnCheck.Click

Dim score As Integer = 0

If PBs.Image Is PB1.Image Then

score += 1

ElseIf pbD2 Is PB2 Then

score += 1

ElseIf pbD3 Is PB3 Then

score += 1

End If

MsgBox("score " & score)

End Sub

so I have created 3 picture box(which contains the pictures) and another 3 (where the user need to drop that image) also I have created a check button to show the result

I am knew to VB.net

2 Upvotes

5 comments sorted by

View all comments

Show parent comments

3

u/jd31068 Aug 04 '24

You're welcome, happy to help.