Print Page | Close Window

MDI Forms / Child Forms

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=2436
Printed Date: 22 November 2024 at 1:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Forms / Child Forms
Posted By: omn_kv
Subject: MDI Forms / Child Forms
Date Posted: 23 June 2005 at 4:52am

Hi ,

I have got a mdimain and two child forms in it who are mdichilds and keypreview = true.

I have a keydown event in botht the forms and the code looks like this.

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
       IF Shift = vbCtrlMask AND KeyCode = vbKeyF6 THEN

               MsgBox "HI"

        END IF

end sub

But when I press CTRL+F6 , in one form the focus goes to other form and repeats. How to override Ctrl+F6 so that it gives me a message box with HI




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net