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

TopMost Form within a .net application

P: n/a
Sam
Hi,
How can I have a form that is TopMost only within the application it
belongs to?

1.I can't use ShowDialog, as it would be modal and I want the user to
be able to interact with controls in the main form.

2.TopMost property makes it being above ALL windows, including those
that do not belong to the application. I don't want that to happen.

Can you help?
Thanks

Feb 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Sam" <sa*************@googlemail.com> schrieb:
How can I have a form that is TopMost only within the application it
belongs to?

1.I can't use ShowDialog, as it would be modal and I want the user to
be able to interact with controls in the main form.

2.TopMost property makes it being above ALL windows, including those
that do not belong to the application. I don't want that to happen.


\\\
Dim f As New Form1()
f.Owner = <main form>
f.Show()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Feb 14 '06 #2

P: n/a
Sam
Hi Herfried
Great ! I've removed TopMost = True, and Iadded f.Owner = main form
and it works just as I wanted.

Many Thanks !

Feb 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.