Welcome Guest Search | Active Topics | Sign In | Register

Setting winform to topmost hides select menus Options
JohnP
Posted: Tuesday, February 2, 2016 4:47:50 AM
Rank: Newbie
Groups: Member

Joined: 11/5/2015
Posts: 1
Hi!

I've posted a question on StackOverflow as I wanted to include an image and it didn't work for me in the EO forum.

Anyway I'm using EO.WebBrowser in a project and it works very well. The component is used in a winform project for a very stripped down web browser. One of the requests from the client is that the application is to be topmost, above all other windows, always, until closed. This works fine by using
Code: C#
setWindowPos
.

Code: C#
static readonly IntPtr HWND_TOPMOST = new IntPtr(-1);
const UInt32 SWP_NOSIZE = 0x0001;
const UInt32 SWP_NOMOVE = 0x0002;
const UInt32 TOPMOST_FLAGS = SWP_NOMOVE | SWP_NOSIZE;

SetWindowPos(this.Handle, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS);


This works fine with the exception of select menus on web pages. The menus that are supposed to turn up are hidden behind the application form. For some reason the z-order of the menus aren't correct. Opening a new window form works flawlessly, but then the new form knows its parent. That's perhaps not the case when it comes to select menus.

Is it possible to get the select menus to show upp properly on web pages and keep the topmost settings of the winform?

Here is the SO question: http://stackoverflow.com/questions/35149796/topmost-winform-hides-select-menus-on-web-pages


eo_support
Posted: Tuesday, February 2, 2016 10:54:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You can not do that. Chrome browser engine does not support top most window. So you can not set your form to top most. Sorry about it!

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.