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

Closings forms from procedure behind other forum

Status
Not open for further replies.

flbos

Programmer
Sep 15, 2005
41
NL
Hi All,

I've got an application consisting of several forms. I need to close forms from within other forms. I also need to access information on some forms from other forms. What's the best way to do this?

I thought of declaring a public object variable for each form at the startup of the application (and open the forms by using the show and showdialog methods of the declared objects) so that I can access al forms from all other forms simply by referring to the de declared objects.

However I'm a bit worried about the memory use. Would the approach described above work well when I have let's say 5-8 forms? Or is there a better way to do access forms from within code that's behind other forms?
 
Try reading faq796-5773 for some useful suggestions


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top