come creare il codice che controlla se non ci sono articoli nel carrello, la pagina tornerà alla home page, frmhome
. Ma se c'è un articolo nel carrello, verrà indirizzato a frmincart
.
il mio codice,
Private Sub picMyCart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picMyCart.Click
Me.Close()
frmItemInCart.Show()
End Sub
Grazie.
risposte:
0 per risposta № 1If (itemInCart = True) Then
frmItemInCart.Show() "Or maybe: frmincart.Show() since you weren"t clear about that, either...
Else
frmhome.Show()
End If