A tooltip appears behind the form / window! (C # / VS 2008)

For some strange reason, my toopltip in VS 2008 C # winforms application appears behind the form! This is very frustrating, and I cannot understand what I should do. Has anyone come across this before? Ideas?

(PS - I do toolstip.show programmatically in the form)

+3
source share
7 answers

There are a few things you can check:

  • Make sure the tooltip knows what its parent window is.
  • Make sure that the window where the tooltip is located is in the foreground (no, this is not necessary for displaying tooltips, it just helps to debug.)
  • . , , , .
+1

. ( , ). , ? ,

0

( ) , Windows. , . ( ), . , , , , , - .

0

. , ++ WTL, #.NET2. , , , , . WTL, , , / .

0

- , TopMost. SetWindowPos, HWND_TOPMOST. , ...

0

, Windows.Forms, Delphi ( ), " " Windows API.

, TopMost , . .

, : , . - - "TopMost" "-- " ( ;-)) , .

, , . .

I hope that additional information will be enough for you to find the solution you need.

0
source

I saw this on Windows XP, especially on the taskbar.

Are you sure this is a problem with your application and not with the OS?

0
source

Source: https://habr.com/ru/post/1702216/


All Articles