r/visualbasic • u/Technical-Garage-310 • 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
View all comments
Show parent comment
2
u/Technical-Garage-310 Aug 04 '24
Hey I actually now i solved like getting each pictures folder and using "Image.FromFile()" and I compared with your code thanks I know this is long process for many pictures but still I don't have time I need to submit it tomorrow so yeah