Re: AxShDocVw and DragOver



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.
>


.



Relevant Pages

  • Re: Overriding .Enabled
    ... shadowing, overriding, of the property & OnEnabledChanged method (you ... > from a single ancestor UserControl and have that ancestor implement ... > Public Interface ITypeable ... > Property Enabledas Boolean ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Page.LoadControl from within a class?
    ... If we had defined say a IPlugIn interface with a Run ... the scope of a web request run that UserControl though? ... LoadControl method but that's only good if you have a page request it looks ... User clicks a button in the web app ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Interface question
    ... > treeview (ie, if a node is clicked in the treeview, I'll load a certain ... > somewhat aware of the usercontrol that is loaded. ... so you create an interface to define the behaviour that all these ... Sure - if uc is declared as IPluggableUC, ...
    (microsoft.public.vb.general.discussion)
  • Re: passing variables to a user control
    ... Create an interface. ... public interface ICommonPage ... int PageID ... then implement it in the classes that contain the usercontrol in question ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Override of WebBrowserSite IDocHostUIHandler using WebBrowser.CreateWebBrowserSiteBase doesnt wo
    ... behavior of the System.Windows.Forms.WebBrowser control as follows: ... implement classes that inherit from the WebBrowser ... or implement any other WebBrowser ActiveX control interface in order to ... implementation for any IDocHostUIHandler members, ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading