Peter Ritchie Inc. Software Consulting Co. Home
      Downloads    General    .NET Topics    C++ Topics    C# Topics

Home
Products & Services
Articles/Blog
Downloads
Links
Members Only
Support
Contact
Login
Register
C# Topics
File Name: csMDI.zip
File Size: 13,462 bytes
Downloaded: 1883 times
Posted by Peter Ritchie on Thursday, October 20, 2005 (EST)
Click here to download this file
Sample application showing new MDI children keeping currently active form active and not losing focus.
Average Rating:

A small sample application that shows two methods of keeping the active MDI child active (without losing focus) while new MDI siblings are added, in the background.

Method one disables the new MDI sibling before making it visible.  This causes the active form no to lose focus.

Method two implements a WndProc override to process WM_NCACTIVATE and selectively "return" false to keep focus.

Both methods do not stop the new MDI Form from coming to the foreground.  The active form is forced to the front with BringToFront.

Checksums:
MD5: 762BF1E88201B8F380E28B79BA6E2E21
SH1: 3589B796E30FE88CBCEEE37FECEF4180780F513C

Add Your Comment

Advertisement
Seek Truth
New Downloads

  • PRI.Rules.2.zip
    Visual Studio 2008 RTM Code Analysis Rules release 2

  • PRI.Rules.1.zip
    Visual Studio 2008 Code Analysis Rules release 1

  • SortableValueType.snippet
    A code snippet for Visual Studio 2005 that implements a skeleton value type adhering to Framework Design Guidelines



  •  
    Copyright © 2005, Peter A. Ritchie All rights reserved