Form over all other windows

  • Thread starter Thread starter geraldinedeberdt
  • Start date Start date
G

geraldinedeberdt

Hi,

I have developped a form for an Outlook addin using C#. I would like
it to appear over all the windows, not only over Outlook, in order to
be seen by the user and not only in the task bar. How can I do it? Any
idea?

Thx,
G.
 
For that you probably would need to use the Win32 API's to call SetWindowPos
with an argument of HWND_TOPMOST. You might be able to achieve the same
effect using SetWindowLong and setting the parent window of your form to the
desktop window, then displaying your form modally.
 
Hi,

I have developped a form for an Outlook addin using C#. I would like
it to appear over all the windows, not only over Outlook, in order to
be seen by the user and not only in the task bar. How can I do it? Any
idea?

Thx,
G.

TopMost is a property of your form, never tried it but probably works
 
Back
Top