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 / March 2006

Tip: Looking for answers? Try searching our database.

Key handling in local server object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeroen ter Hofstede - 27 Mar 2006 15:52 GMT
From our main application we're creating a COM component, written in C#
under .Net, which in turn contains a web edit control. This control acts as
an editor, and we can enter text in it. If we run it as an in-process
component, all works as expected, but when running out-of -process as a
local server (which we prefer due to architectural reasons) some keys are
not "seen" by the editor. This includes e.g. the Del key (backspace works
fine), Ctrl+C and Ctrl+V. Debugging reveals that the corresponding key
messages (WM_KEYDOWN and WM_KEYUP) are Dispatch()ed to the proper control.

Does anybody have a clue?

TIA,
Jeroen
Igor Tandetnik - 27 Mar 2006 16:57 GMT
> From our main application we're creating a COM component, written in
> C# under .Net, which in turn contains a web edit control. This
[quoted text clipped - 5 lines]
> Debugging reveals that the corresponding key messages (WM_KEYDOWN and
> WM_KEYUP) are Dispatch()ed to the proper control.

These accelerator keystrokes need to be delivered to WebBrowser control
via IOleInPlaceActiveObject::TranslateAccelerator. Apparently, one of
your hosts does that while the other does not.
Signature

With best wishes,
   Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925

Jeroen ter Hofstede - 28 Mar 2006 08:10 GMT
>> From our main application we're creating a COM component, written in
>> C# under .Net, which in turn contains a web edit control. This
[quoted text clipped - 9 lines]
> control via IOleInPlaceActiveObject::TranslateAccelerator.
> Apparently, one of your hosts does that while the other does not.

Ok, thanks a lot!

Jeroen

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.