User Profile

Collapse

Profile Sidebar

Collapse
oscWork
oscWork
Last Activity: Jan 16 '09, 09:19 AM
Joined: Feb 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • oscWork
    replied to MDI Style focus without using MDI forms
    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.
    See more | Go to post

    Leave a comment:


  • oscWork
    replied to MDI Style focus without using MDI forms
    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.
    See more | Go to post

    Leave a comment:


  • oscWork
    replied to MDI Style focus without using MDI forms
    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...
    See more | Go to post

    Leave a comment:


  • oscWork
    started a topic MDI Style focus without using MDI forms

    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...
    See more | Go to post
No activity results to display
Show More
Working...