|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TopMost Form within a .net applicationHi,
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 "Sam" <samuelberthe***@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/> Hi Herfried
Great ! I've removed TopMost = True, and Iadded f.Owner = main form and it works just as I wanted. Many Thanks ! |
|||||||||||||||||||||||