Show shape without losing focus

I created a small form that acts like service notifications (disappears in the \ above the notification icon icon)

I am having problems displaying this form, I want to display it without focus taken from my main application (or any other form), I managed to get the attached code that does something like this (using Me. Activate to return focus) But this not very convenient - focus switches for a moment plus I want to show the form from different areas of my application ...

  Dim frm2 As New frmNotification()
    frm2.TopMost = True
    frm2.Show()
    Me.Activate()

Any ideas?

+3
source share
1 answer

This question has been answered.

Show form without focus theft?

#, , vb.net. .

+2

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


All Articles