Ask Experts Questions for FREE Help !
Ask
    pumpkinslion's Avatar
    pumpkinslion Posts: 14, Reputation: 1
    New Member
     
    #1

    Jan 21, 2010, 03:30 PM
    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
    steadysimple's Avatar
    steadysimple Posts: 9, Reputation: 1
    New Member
     
    #2

    Mar 28, 2010, 07:52 PM

    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.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Something about Visual Basic. [ 3 Answers ]

May anyone tell me how to do this calculation,the code into Visual Basic? (Question) If the user inputs 15 and 3, the first number is a multiple of the second. If the user inputs 2 and 4, the first number is not a multiple of the second.

Visual basic [ 1 Answers ]

I made this code to save text file. But now I am wondering how to save a file if there is an existing file name. I would like to add a mnuItemSave for that. Is it work? How to code that? Private Sub mnuItemsave_Click() CommonDialog1.Filter = "Text files (*.TXT)|*.TXT" ...


View more questions Search