VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Systray Toolbar Bug

Ben White  (3 Submissions)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

When a form contains a toolbar (from MS Common Controls 6.0), there is a bug in vb6 that causes the systray icon to not respond to mouse events. The workaround for this is to set the toolbar.enabled = False before creating the systray icon

API Declarations
Public Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function Shell_NotifyIcon Lib "shell32" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean

Rate Systray Toolbar Bug (4(4 Vote))
Systray Toolbar Bug.bas

Systray Toolbar Bug Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters