Managed to solve this, if anyone is interested I disabled the "flickering " (read: visual focus change) by overriding WndProc and on WM_NCACTIVATE and WParam == 0 send a message to the window:
SendMessage(thi s.Handle, WM_NCACTIVATE, 1, IntPtr.Zero);
This re-activates the window, causing it to "appear" in focus every time.
User Profile
Collapse
-
Vista at the moment, it does appear to only happen within "my" program and not if I do it between two windows.. odd.
I'll have a look into that one, cheers.Leave a comment:
-
I mean the general flicker if you actually switch focus between two windows, for example, if you do it fast you get a flicker - perhaps it wasnt the best way to describe it!
Basically if you create a standard MDI app with the main form as an MDI Container and then add a child form, when you actually "select it" i.e. it gets focus you do not loose focus on the main window.
For example, if I were to open a new window...Leave a comment:
-
MDI Style focus without using MDI forms
Does anyone know of any way to switch focus between a main form and a child form without the usual flickering you get while changing focus between windows?
This works fine if the main form is an MDI container and the child form is within that container, but MDI is not appropriate for this application. I would like to be able to interact with a form without losing focus on the main form.
Obvious workarounds such as setting...
No activity results to display
Show More
Leave a comment: