Re: AxShDocVw and DragOver
- From: "Roy Soltoff" <rattlesnake0407@xxxxxxxxxxxxxxxx>
- Date: Wed, 1 Jun 2005 10:00:04 -0400
Thanks for your news. I have gone ahead and started to use the
IDOCHostUIHandler interface per the article you mentioned, as well as
utilizing the code from the custom webbrowser that was already ported to
VB.Net referenced in
http://www.fasioncomputing.com/samples/programming_samples.htm and have the
interface embedded in my usercontrol wrapper. This has allowed me to turn
off the context menu and inhibit the speed keys like the WBCustomizer did (I
really want to avoid as much COM interop in thisw project so I want to avoid
using any of m VB ActiveX components in the DOTNET port).
The only thing remaining is learning how to deal with the IDropTarget
implementation for the object that needs to be returned. I am doing research
on that. Since it appears that IDropTarget is a COM defined interface, I
doubt that I can simply return a reference to my usercontrol, but must
implement the IDropTarget interface and return an object of that type.
""Jeffrey Tan[MSFT]"" <v-jetan@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:5eycFWnZFHA.3336@xxxxxxxxxxxxxxxxxxxxxxxx
> Hi Roy,
>
> Thanks for your feedback.
>
> Yes, I have done some test in VB6.0, it seems that VB6.0 usercontrol can
> intercept WebBrowser's messages without any problem. I am not sure why
> VB6.0 does not go with Win32 messags processing model. However, I suspect
> that because VB6.0 is based on COM, which is easy for interprocess
> communication, so maybe WebBrowser internally delegate the drag&drop
> messages to the underlying parent usercontrol. However, for .Net
> usercontrol, it is not a COM control, so there is no build-in support for
> this.
>
> Currently, for this issue, I think we have 2 options:
> 1. just use the VB6.0 usercontrol to wrap the webbrowser control, then
> place all the drag&drop function code in VB6.0 usercontrol side. At last,
> in .Net winform, we can add the entire VB6.0 usercontrol in the .Net Form,
> and use it.
> 2. go with the COM interop IDOCHostUIHandler interface to react to the
> webbrowser drag&drop events.
>
> I think #1 is much simpler than #2 option. Thanks
> ===============================================================
> Thank you for your patience and cooperation. If you have any questions or
> concerns, please feel free to post it in the group. I am standing by to be
> of assistance.
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>
.
- Follow-Ups:
- Re: AxShDocVw and DragOver
- From: "Jeffrey Tan[MSFT]"
- Re: AxShDocVw and DragOver
- References:
- Re: AxShDocVw and DragOver
- From: "Jeffrey Tan[MSFT]"
- Re: AxShDocVw and DragOver
- Prev by Date: Missing Events
- Next by Date: Re: Missing Events
- Previous by thread: Re: AxShDocVw and DragOver
- Next by thread: Re: AxShDocVw and DragOver
- Index(es):
Relevant Pages
|
Loading