Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Urgent Help Needed In Vb

Options
  • 26-03-2002 2:24pm
    #1
    Closed Accounts Posts: 2


    I have three forms, all have a labet with a total price on it, I want all these totals to appear on another label on another from, how do I do this...I have tried books and stuff but as you all know I learned english in another way to the writers. Oh and my project is due tomorrow! PLEASE help!!!


Comments

  • Registered Users Posts: 16,413 ✭✭✭✭Trojan


    Use something like
    
    Sub cmdCopyTotals()
    
    frmAux1.lblNewTotal.Caption = frmMain.lblSubTotal1.Caption
    frmAux2.lblNewTotal.Caption = frmMain.lblSubTotal1.Caption
    
    End Sub
    
    

    or whatever.

    Basically the syntax you're looking for is formName.labelName.Caption = oldFormName.labelName.Caption

    Al.


  • Closed Accounts Posts: 2 EEichi


    Thanks mate... I'll try it


  • Closed Accounts Posts: 1,322 ✭✭✭phobos


    Oh so that's how you do it ;)

    Quick somebody tell Kealan, his problems are solved!!

    Happy Dayz :cool:

    ;-phobos-)


Advertisement