Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Window immediately pops behind other windows on launch. #15

Open
b-levitt opened this issue Jul 22, 2014 · 1 comment
Open

Window immediately pops behind other windows on launch. #15

b-levitt opened this issue Jul 22, 2014 · 1 comment

Comments

@b-levitt
Copy link

The instant I add "new Twain(new WinFormsWindowMessageHook(this));" to my winform, that form falls out of the foreground when it starts up. It ends up jumping behind other windows and I have to click on it or its start bar icon to bring it forward again. I'm not sure what the issue since the message prefilter isn't called until a scan, but it is definatly related to this line of code.

@norbert-olah
Copy link

Yes, the same happens with me.
Workarund until better solution found: calling this.Focus(); in the ScanningComplete event handler to bring back the window to the front. Not the best, but less annoying than having to get back my app from the taskbar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants