passing a value from one form to a label in another form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aabare
    New Member
    • Mar 2013
    • 1

    passing a value from one form to a label in another form

    I am new to VB and I have a question..
    I have two forms. First form has two group boxes with radio buttons for each option, a few buttons to clear and exit, and a button to calculate. When the user clicks the calculate button I need the second form to display the total. How do I do this, I have no code written for it. THANKS FOR ANY HELP YOU CAN GIVE!
  • IronRazer
    New Member
    • Jan 2013
    • 83

    #2
    To set the text on Form2 from Form1 you could do this
    Code:
    Form2.Text = CStr(TotalVariable)

    Comment

    Working...