>FRMPEDIDOS is called from a Button at FRMLISTAPEDIDOS. Unless you provide an object reference to FRMPEDIDOS that can be seen from the Load method of FRMLISTAPEDIDOS, you can't set a property on it.
There are a few ways to do this. One is to have a global form manager object that stores the reference, and you can call: frmMgr.oFRMPEDIDOS.Visible = .F. Another is to pass a reference to the calling form in the Init() method. If waiting for the Init() method will work for you, then in your button.Click(): DO FORM FRMLISTAPEDIDOS WITH THISFORM And in FRMLISTAPEDIDOS.Init() LPARAMETERS oCaller oCaller.Visible = .F. There are other ways as well. HTH, Ken Dibble www.stic-cil.org _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

