Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Visual basic coding (https://www.askmehelpdesk.com/showthread.php?t=437899)

  • Jan 21, 2010, 03:30 PM
    pumpkinslion
    visual basic coding
    Assume that you are coding an object in the frmFriends form and you want to refer to the Text property of the txtPhone text box, which is in the frmNumbers form, which one of following could you enter into the Code window?
    FrmNumbers.txtPhone.Text or frmFriends.txtPhone.Text or
    TxtPhone.Text or txtPhone.text.frmNumbers
  • Mar 28, 2010, 07:52 PM
    steadysimple

    The flow is:-
    Form ---> Object ---> Properties

    So, it should be frmFriends.txtPhone.Text

    But if you are referring in the same form, then ignore the Form, just txtPhone.Text.

  • All times are GMT -7. The time now is 07:40 PM.