Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress and Keypreview problem
Message
 
 
To
05/12/2008 10:51:09
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01365671
Message ID:
01365683
Views:
13
>>>I've got a web browser control on a VFP form whose keypreview is set to .T. I've put code in the form's keypress and I've discovered that the code does not execute because of the web browser control. I've tested this scenario with another activeX control and the same thing happens. If I remove the activeX control, the form's keypress code fires.
>>>
>>>Has anyone encountered this and know of a workaround?
>>>
>>>What I'm trying to do is implement some keyboard shortcuts like F5 to refresh the content displayed in the web browser.
>>>
>>>TIA,
>>>Mike
>>
>>I found this message Re: Function Key and Calendar Control Thread #842812 Message #842914 seems to be related.
>
>Thanks Naomi. Unfortunately the browser control does not have any key events that I can see to trap!

Interesting, found one of our friends here http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/685f23c0-73aa-4c3f-8e32-15ca9ea75e21/ :)

Anyway, I'll take a look at this later, don't have a moment right now.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform