Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2008, 11:24 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Add these 2 procedures to your MDI form...

    Private Declare Auto Function SendMessage Lib "user32" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr



    Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean

        SendMessage(Me.ActiveMdiChild.Handle, msg.Msg, msg.WParam, msg.LParam)

        'Return MyBase.ProcessCmdKey(msg, keyData)

    End Function






Similar Threads
Thread Thread Starter Forum Replies Last Post
shortcut keys and pop up dipankar.aich Windows Presentation Foundation 0 April 5th, 2007 07:43 AM
use Shortcut keys slokhande C# 1 July 21st, 2006 09:45 AM
Shortcut keys! Dharam80 Access 2 August 18th, 2005 08:23 AM
making Shortcut keys melvik C# 6 April 9th, 2005 11:48 AM
Shortcut keys DARSIN General .NET 1 November 22nd, 2004 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.