Log in

View Full Version : Visual basic coding


pumpkinslion
Jan 21, 2010, 03:30 PM
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
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.