Hi all,
I'm nearly finished making a blackjack game for my first year assignment in college using Visual Basic. The game is running ok, I'm happy with that but I am having one small issue!
In the frmMain I have a counter set up so it counts and displays the number of games won and lost. From the drop down menu in the frmMain I have a Statistics option which opens another Form which I want to display the stats from the frmMain....
How do I view the result on a different form?!?

I've tried the following code in the 2nd form...

Private Sub txtSessPlay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSessPlay.TextChanged
        frmMain.txtPlayer2.Text.ToString()
    End Sub

I've also tried the following code in frmMain...

dealerCount = stats.txtSessDeal.Text.ToString()

dealerCount is the variable set to count the statistics and stats is the name of the second form...

Can someone please point me in the right direction?!?!

Many Thanks!

Got it!

Private Sub StatisticsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StatisticsToolStripMenuItem.Click
        stats.txtSessPlay.Text = playerCount.ToString
        stats.txtSessDeal.Text = dealerCount.ToString
        Me.Hide()
        stats.Show()
    End Sub