By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Display Forms

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"Will" <Wi**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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

Nov 20 '05 #2

P: n/a
* "=?Utf-8?B?V2lsbA==?=" <Wi**@discussions.microsoft.com> scripsit:
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'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

P: n/a

"Will" <Wi**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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.
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.