<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Form_KeyDown events lost</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : ActiveX COM : Form_KeyDown events lost]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 07 Jun 2026 14:57:49 +0000</pubDate>
  <lastBuildDate>Fri, 26 Sep 2008 11:56:37 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12265</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Form_KeyDown events lost : I have an MDI app (VB6) using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12265&amp;PID=41420&amp;title=form-keydown-events-lost#41420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 12265<br /><strong>Posted:</strong> 26 September 2008 at 11:56am<br /><br />I have an MDI app (VB6) using CommandBars, etc. (v10.4.1).<DIV>&nbsp;</DIV><DIV>I show an MID Child with CBs and a treeview control. This form has a Form_KeyDown() event handler routine. KeyPreview is TRUE.</DIV><DIV>&nbsp;</DIV><DIV>When I press the delete key&nbsp;part of the process is to show a dialog to verify that the User wants to do the delete. This dialog form is a very simple form with text and a few buttons. It uses commanbars as well but is NOT set as an MDI Child since you cannot show a modal form. (ie: you cannot 'Show frmX.Show vbmodal, owner' if it's an MDIChild.)</DIV><DIV>&nbsp;</DIV><DIV>The dialog shows fine but now the calling MDIChild form's Form_KeyDown() events are not firing.</DIV><DIV>I've debugged in the code and Me.KeyPreview is still = TRUE.</DIV><DIV>&nbsp;</DIV><DIV>I can focus (mouse click) on another MDI Child form in the app&nbsp; and then focus back on this MDIChild form and the Form key events are working again!</DIV><DIV>&nbsp;</DIV><DIV>However the treeview controls key_down events ARE firing! It's as if KeyPreview was being overrided and the commandbar control is passing the key to the form's control but not the form.</DIV><DIV>&nbsp;</DIV><DIV>I have tried resetting form focus (me.SetFocus), no luck.</DIV><DIV>&nbsp;</DIV><DIV>Is this a known issue with 10.4.1??</DIV><DIV>Is there a solution?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for any and all help.</DIV>]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 11:56:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12265&amp;PID=41420&amp;title=form-keydown-events-lost#41420</guid>
  </item> 
 </channel>
</rss>