How can I make this program more efficient by using ByVal and ByRef?
<p>I am new to programming in VB.NET and do not know how ByRef and ByVal could work in part of this Blackjack code! Thanks!</p>

<p>Here is a part of the code:</p>

<pre><code>Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    If hit = 0 Then
        getCard()
        PictureBox3.Image = cImg(n)
        playertotal += value
        If playertotal &gt; 21 And pAce &gt;= 1 Then
            pAce -= 1
            playertotal -= 10
        End If
    End If

    If hit = 1 Then
        getCard()
        PictureBox4.Image = cImg(n)
        playertotal += value
        If playertotal &gt; 21 And pAce &gt;= 1 Then
            pAce -= 1
            playertotal -= 10
        End If
    End If

    If hit = 2 Then
        getCard()
        PictureBox5.Image = cImg(n)
        playertotal += value
        If playertotal &gt; 21 And pAce &gt;= 1 Then
            pAce -= 1
            playertotal -= 10
        End If
    End If
    hit += 1
    Label2.Text = playertotal
    If Label2.Text &gt; 21 Then
        Label11.Text = "COMPUTER WINS!"
    End If
    If hit = 3 And playertotal &lt;= 21 Then
        Label11.Text = "PLAYER WINS!"
    End If
End Sub 
</code></pre>