Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

Key processing in MDI child forms

Posted: Feb/14/2010   By: pankaj   Points:15   Category: .NET  - .NET Framework    Views:115   Vote Up (0)   Vote Down (0)    
Hello,
in my MDI application I add child forms to the main form like this:
FormWaveform formWaveform = new FormWaveform(...);formWaveform.MdiParent = this;formWaveform.Show();
If the user presses a key, I want the active child form to react and I implemented the corresponding methods as follows in the child's form class:
void FormWaveform_KeyDown(object sender, KeyEventArgs e) {....}
and
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {...}
My problem is, that only the child form, which was first added, processes the messages. All other forms don't.
In the main form, I added an event handler which handles the changing of the active child; here I tried to change the properties of the active child and the passive children: no success.
In every case, only the first added child processes the key input - even if this form is not the active MDI child. All other MDI children can not process any message.
Can anyone give me a hint?
Thanks in advance,
Markus
 

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Cutting Edge: Exploring ASP.NET 4.0-Web Forms and Beyond

  
The upcoming ASP.NET 4.0 platform has the same foundation as the latest 3.5 SP1 version, but it provides further refinement in the areas of Web Forms, Dynamic Data controls, and ASP.NET AJAX. In this article, Dino takes a look at what's new and improved in the Web Forms model.Dino EspositoMSDN Magazine September 2009

Cutting Edge: Comparing Web Forms And ASP.NET MVC

  
In this month's column, we'll explore the pros and cons of both ASP.NET Web Forms and ASP.NET MVC.Dino EspositoMSDN Magazine July 2009

Peer Fun: A Peer-To-Peer Work Processing App With WCF

  
We demonstrate creating a peer-to-peer processing platform where multiple players function together for a common purpose: getting your work done.Matt NeelyMSDN Magazine June 2009

Cutting Edge: Go Beyond HTML Forms With AJAX

  
This month we examine forms in the context of AJAX applications and look at various approaches to implementing features such as auto-saving, just-in-time validation, and submission throttling.Dino EspositoMSDN Magazine June 2009

Extreme ASP.NET: Routing with ASP.NET Web Forms

  
See how to get the benefits of rerouting while alleviating the risks with this in-depth look at URL rewriting in ASP.NET.Scott AllenMSDN Magazine January 2009

CLR Inside Out: Unhandled Exception Processing In The CLR

  
In this installment of CLR Inside Out Gaurav Khanna explains everything you need to know about unhandled exception processing in the .NET Framework.Gaurav KhannaMSDN Magazine September 2008

CLR Inside Out: Extend Windows Forms Apps Using System.AddIn

  
See how Windows Forms applications can be adapted to use the new .NET Add-in framework (System.AddIn) this month.Mueez SiddiquiMSDN Magazine July 2008

GUI Library: Bring the Simplicity of Windows Forms to Native Apps

  
In this article, author John Torjo presents a guide to his C++ GUI library called eGUI++ and explains how it makes user interface programming easier.John TorjoMSDN Magazine June 2008

ASP.NET MVC: Building Web Apps without Web Forms

  
Chris Tavares explains how the ASP.NET MVC Framework's Model View Controller pattern helps you build flexible, easily tested Web applications.Chris TavaresMSDN Magazine March 2008

.NET Matters: Asynchronous Stream Processing

  
This month Stephen Toub discusses asynchronous stream processing.Stephen ToubMSDN Magazine March 2008
 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge