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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reference a control in other form

Status
Not open for further replies.

OOzy

Programmer
Jul 24, 2000
135
SA
How can I reference a control from another form. For example, If click a button on form1, I will textbox in form2 too gets the text.
 
You may have the Form2 opened.
You have two choisses
[ol][li]Declare the TextBox in Form2 as Public Shared, and than you can access this textbox from other forms.[/li]
[li]Create property in Form2 which actualize this TextBox
Than You can access this property from other forms.[/li]
[/ol]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top