1 Attachment(s)
One Form on Top of the Other (Always) (Resolved)
I was wondering if there is a way to achieve the same Paint does:
To have a form always on top of it but this form won't be on top of any other application.
I am trying to achieve a similar effect with my application. Could someone please give me an advice on this one?
I have tried the SetWindowPos API but it seems I must be doing it wrong... I would love to hear any suggestion.
Re: One Form on Top of the Other (Always)
Try SetParent. It may help you do what you want. :wave:
Re: One Form on Top of the Other (Always)
Re: One Form on Top of the Other (Always)
Tec-Nico you probably already figured out that Form1 in Hack's example is the form that you want to show on top. In case you don't want to show that form modally, you can do this and have it still be on top.
That indicates that frmUnder owns formOnTop.
Re: One Form on Top of the Other (Always)
Thank you for all your replies, guys.
I will try your suggestions.
David: I tried yesterday with setParent API, I hope your example shows how to do it without the form being "inside" (Because the thumbnail would be useless if you can't move it to one side of the form)
Hack: Thank you for your reply... Unfortunatelly I don't want the form to be modal... I will try it, though.
Martin: Thanks for your suggestion, I am going to try it right now.
Re: One Form on Top of the Other (Always)
Thank you, everyone! :) I got it working now... I tried Martin's suggestion and it did just what I wanted.
(How could I miss that? :P I guess I am really tired lately)