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

Accessing form object from other form

Status
Not open for further replies.

tonioJ

Programmer
Oct 7, 2002
90
PH
Good day!

I have 2 forms in my project. One is the record navigation form and the other is a search form. In a search form, I have a textbox called txtSearchValue and a datagrid. I am planning to create a reusable search form that can be used by other modules in my project.

1. How do I populate the datagrid from record navigation form?
2. How do I access the txtSearchValue text box properties from record navigation from since i will be initializing all controls from record navigation form.

Thank you in advance and more power!

tonioj
 
if you do a search in this forum you will find hundreds of answers, but first you need to grasp the OO principal.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
chrissie1 is correct -- in .NET, forms are objects, and obey all the object visibility rules. (Hint: Make what you want accessed from outside the form public)

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
hello guys,
I already figure it out. :) thanks for all your replies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top