VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Loading an Icon To The Systray

Jim Byrnes  (3 Submissions)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Here are 2 small demos of loading an icon to the systray (system tray)
the first is Systray Basic, which is by the book and includes the Public Declare Function, "SetForegroundWindow Lib "user32" _
(ByVal hwnd As Long) As Long". This declare basically means if you click the icon in the systray to open the popup menu and then the click on something else besides the popup menu, this will close the popup menu. The second is a modified basic systray demo that I made that minimizes the form at startup and when it is maximized it is visible in the taskbar too. Both are commented. I have 2 other demos about icons in the systray as soon as I comment them i will share them. jim byrnes

Assumes
Here are 2 small demos of loading an icon to the systray (system tray) the first is Systray Basic, which is by the book and includes the Public Declare Function, "SetForegroundWindow Lib "user32" _ (ByVal hwnd As Long) As Long". This declare basically means if you click the icon in the systray to open the popup menu and then the click on something else besides the popup menu, this will close the popup menu. The second is a modified basic systray demo that I made that minimizes the form at startup and when it is maximized it is visible in the taskbar too. Both are commented. I have 2 other demos about icons in the systray as soon as I comment them i will share them. jim byrnes

Rate Loading an Icon To The Systray (5(5 Vote))
Loading an Icon To The Systray.bas

Loading an Icon To The Systray Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters