A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook does not pass keyboard event to an OCX



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 12th 06, 09:52 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default Outlook does not pass keyboard event to an OCX

Hi,

I am developing an OCX that is to be embedded on an Outlook custom
form. I am running into an issue of not being able to receive keyboard
shortcuts events from Outlook such as: Ctrl-A, Ctrl-C Ctrl-V
(cut/paste) etc...

When I run the OCX (VB) outside Outlook, then everything is fine. But
once its embedded into Outlook we don't get these events. Apparently
Outlook does not pass those to the OCX control therefore we're unable
to process them. I get the same behavior even when I use standard
Microsoft OCX controls.

Does anybody have any idea how to force outlook to pass these shortcuts
to the OCX?

Thanks,

Ronnie

Ads
  #2  
Old June 12th 06, 10:50 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook does not pass keyboard event to an OCX

You can set a global Windows keyboard hook for the current process
(SetWindowsHookEx), process all of the keyboard messages, and pass them to
your control or let Windows run the defaut processing depending on which
window the messages are being sent to.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

wrote in message
oups.com...
Hi,

I am developing an OCX that is to be embedded on an Outlook custom
form. I am running into an issue of not being able to receive keyboard
shortcuts events from Outlook such as: Ctrl-A, Ctrl-C Ctrl-V
(cut/paste) etc...

When I run the OCX (VB) outside Outlook, then everything is fine. But
once its embedded into Outlook we don't get these events. Apparently
Outlook does not pass those to the OCX control therefore we're unable
to process them. I get the same behavior even when I use standard
Microsoft OCX controls.

Does anybody have any idea how to force outlook to pass these shortcuts
to the OCX?

Thanks,

Ronnie



  #3  
Old June 13th 06, 12:09 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default Outlook does not pass keyboard event to an OCX

Thanks Dmitry,

Will try.

Ronnie

Dmitry Streblechenko wrote:
You can set a global Windows keyboard hook for the current process
(SetWindowsHookEx), process all of the keyboard messages, and pass them to
your control or let Windows run the defaut processing depending on which
window the messages are being sent to.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

wrote in message
oups.com...
Hi,

I am developing an OCX that is to be embedded on an Outlook custom
form. I am running into an issue of not being able to receive keyboard
shortcuts events from Outlook such as: Ctrl-A, Ctrl-C Ctrl-V
(cut/paste) etc...

When I run the OCX (VB) outside Outlook, then everything is fine. But
once its embedded into Outlook we don't get these events. Apparently
Outlook does not pass those to the OCX control therefore we're unable
to process them. I get the same behavior even when I use standard
Microsoft OCX controls.

Does anybody have any idea how to force outlook to pass these shortcuts
to the OCX?

Thanks,

Ronnie


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup outlook to pass notes, calendar within workgroup for MSHome Home calendar setup Outlook - Calandaring 0 May 23rd 06 06:39 PM
add a feature to outlook calendar to mark of days as they pass. OUTLOOK FEATURE SUGGESTION Outlook - Calandaring 1 May 19th 06 04:18 AM
OCX problem in VB Outlook AddIn Rui Oliveira Add-ins for Outlook 0 March 31st 06 05:42 PM
How do I pass parameters to application invoked by Outlook rule? Sergy Stouk Outlook - Installation 1 March 20th 06 01:18 PM
For MS MVP's to pass on ADE AYORINDE Outlook Express 1 January 17th 06 09:04 AM


All times are GMT +1. The time now is 08:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.