.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
I have a problem with modeless window. It stays on top even when it loses focus.
This is how I show the form:
Dim myForm As New myFormClass
Autodesk.AutoCAD.ApplicationServices.Application.S
Any ideas? TopMost property is set to False.
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I think that is because you are using the ShowModelessDialog function and autocad threats your form as it is a paletteset. because you know palettesets are modeless windows but they are always on top. i advise you to use Form instances Hide method in forms lost focus event.
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
but that's not the behavior i want, the modeless window is the Help window and i want the user to be able to have the help shown and work with the program, be able to swithch to help and back.
the minimize works, but it's not that comfortable
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Does making help window autohide solve your problem? You can create a paletteset instead of a form and make the paletteset autohide.
if not try Form.Show() instead of Application.ShowModelessDialog().
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
i tried Form.Show with the same result, i guess I'm doing something fundamentally wrong, or it's AutoCAD that's causing the problem
but I'm more inclined to blame AutoCAD, because when I make a winform application, it works fine
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Which autocad are you using? I tested Form.Show in Autocad2012 and it works.
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
i'm using Civil 2012, but i run it as clean AutoCAD
did you use AcApp.ShowModalDialog for the main window, or did you use Form.ShowDialog ?
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I used Form.Show() not Form.ShowDialog() . i thought that you want a modeless form.
Re: Modeless window always on top
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I am opening the modeless form from a modal form
form1 has a button (or responds to keypress event) that opens form2, form1 is modal, form2 is modeless

