Microsoft eMbedded Visual Basic version 3.0 looses its taskbar button (main window works fine) when switching virtual desktops. I have added the exe to the registry keys NeverSubClassPrograms and NoCloseWhenHidden and indeed no extra menu shows up and no pin in the window caption bar. When minimizing the main window the taskbar button is restored.
Well, all VB-based programs are strange as the window that is displayed in the taskbar is not the window that is displayed on the screen.
Run the registry editor, go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\R2d2KernelAuthority\Parameters key, edit the MultiWindowsPrograms value and add a new line *\eVb3.exe (if eVb3.exe is the name of your executable).