I have a small utility application written in Visual Basic 6 that has worked successfully on XP clients over the years, and recently a client that uses Windows 7 notified me and showed that the behavior is different.
When my VB application displays a dialog box, it remains hidden until the user clicks on it in the taskbar.
Instead, I changed the code, instead of using the ".show vbModal" command, I changed it to display the form with a modeless mod, and then added various API calls like BringWindowToFront and SetWindowPos to make it the largest and call. the form, despite these additional instructions, the best result I can achieve is to make a flash form that prompts the user to click on it.
No matter what I tried, I can not make the window the topmost and with the focus without user intervention.
Note. This is an exe ActiveX project and is called by the Win16 application via COM.
Has anyone else encountered this behavior and was aware of a solution?
Any suggestions / tips appreciated, thanks.
source
share