Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2004

Tip: Looking for answers? Try searching our database.

web broswer help please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil Stevens - 27 Nov 2004 23:58 GMT
Hi,

I am developing a windows application which uses the browser control and
DHTML as the UI, i have designed a class that implements the
IDocHostUIHandler so that i can block the accelerator keys (F5, Ctrl+F5,
Ctrl+5, and so on), i have script that runs in pages that will be displayed
in the browser control and these scripts use the keyup and keydown events.

Now, the problem i have is that i am using TranslateAccelerator to block the
accelerator keys, but this is eating the keyup and keydown event because of
the return value. I actually need some of these key presses in the script
and would like to know if there is a way that i can fire these events (keyup
and keydown) from TranslateAccelerator before i return the return value.

Can anyone help me with this.
Thanks in advance
Neil
Serg - 29 Nov 2004 02:39 GMT
try throwing from your event handler:

throw new COMException("", 1);

or

throw new COMException("", 0);

depending no whether or not you want IE to hanlde the pressed keys for you.

> Hi,
>
[quoted text clipped - 13 lines]
> Thanks in advance
> Neil

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.