Display Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey guys

I have 3 forms (frmMain, frmTemp1, frmTemp2) ... i want be able to display all 3 forms in a way that frmMain will always be in the background .. and frmTemp1,frmTemp2 on top of frmMain .. but i dont want frmTemp1 or frmTemp2 to go behind frmMain when i switch between the two forms ... I hope i make sense !!

NEED CODE PLEASE
THANX IN ADVANCE
 
You should consider using MDI forms. Make your MainForm an MDI Container
(set its IsMDIContainer property to true), then set the MDIParent property
of the other forms to point to your MainForm.

Telmo Sampaio
 
* "=?Utf-8?B?V2lsbA==?= said:
I have 3 forms (frmMain, frmTemp1, frmTemp2) ... i want be able to display all 3 forms in a way that frmMain will always be in the background .. and frmTemp1,frmTemp2 on top of frmMain .. but i dont want frmTemp1 or frmTemp2 to go behind frmMain when i switch between the two forms ... I hope i make sense !!

Set 'frmTemp1''s and 'frmTemp2''s 'TopMost' property to 'True'.
 
I have 3 forms (frmMain, frmTemp1, frmTemp2) ... i want be able to
display all 3 forms in a way that frmMain will always be in the background..
and frmTemp1,frmTemp2 on top of frmMain .. but i dont want frmTemp1
or frmTemp2 to go behind frmMain when i switch between the two forms ...
I hope i make sense !!

Read about the Owner property of the Form class.
 
Back
Top