Set Focus To Another Window using vb6 on windows 7
hi, Greetings all of the member of this forum.
i am stuck..
i tried to set focus and activate another window by window handle.., it's work on XP (SetforegroundAPI) while my app not on forground (call api using timer)
but on windows7 it is not working.. it's just flash the taskbar icon but not set the focus to the window and don't activate it..
i tried :
SetForeGraound Api
BrintToTop Api
setFocus API
even with AppActivate Command (with process id)
but none of these work. just flash the taskbar window?
Re: Set Focus To Another Window using vb6 on windows 7
I had a very similar problem when calling Microsoft Word from my application. On Windows 7 it would start but stay on the task bar. The user would have to either Alt Tab or Click on the task bar for the window to come forward.
Re: Set Focus To Another Window using vb6 on windows 7
ok here is the details what i need :
i am working on a project, where my client ask to lock his user to a fixed program (for example notepad/ms word).. for a certain, user are not allow to use others program while he is in that time frame. so, i use a timer to check the time and if it is in time frame and user not using the same software he is allowed to, i tried to set focus back to that software. but it works on xp, while not on windows 7?