Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change a property value on one form from another form.

Status
Not open for further replies.

KLK000

MIS
May 22, 2002
37
US
I need to update the label.text property on Form1 from Form2. From1 opens Form2 as follows:

Dim form2 As New Form2
form2.Show()

In form2, I try to change the label property in Form1 as follows:

form1.label.text = "test"

What exactly do I need to do so the above assignment will work?
 
KLK000 -

This has been answered many times before. Please do a search.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Thank you. I did do a search but couldn't find anything that directly answered the question. I'll keep looking.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top