This is on the first form of my program:
And then when I try to pull that variable back on the next form to show the price, I always get a return of 0.
Any help would be greatly appreciated!
Code:
Public Class Decks
Public MasterPrice as Double
Public Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
If RadioButton1.Checked = True Then
MasterPrice = 60.0
Else
MasterPrice = 0
End If
End SubCode:
Public Class Misc
Public Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim deckform As New Decks
MessageBox.Show(deckform.MasterPrice)
End Sub