On one form when i click a button called cost, I need the text box beside it to give me the contents of a textbox on another form
ie.
textbox20.text = textbox16.text on form 2 ??????????
help please and thanks
Printable View
On one form when i click a button called cost, I need the text box beside it to give me the contents of a textbox on another form
ie.
textbox20.text = textbox16.text on form 2 ??????????
help please and thanks
you need to declare Form2 somewhere first ( so it's available throughout Form1's controls , eg: button clicks ) , something like this....
VB Code:
Dim frm2 As New Form2() frm2.Show() '/// then in a sub ( like a button click ) ... textbox20.text = frm2.textbox16.text
so, in other words, you have to treat each form in your app as objects? and the controls of that object are simply object properties?