Re: AxShDocVw and DragOver



Still one further point: In my app, if I drag plain text over the webbrowser
control that is wrapped by my user control, the webbrowser is handling the
dragover as it shows the dragover mouse cursor (and I supose that Webbrowser
accepts only a string object). But as before, without being able to give it
my IDropTarget object, all is for naught.

I noticed from a point made in your first link below, that GetDropTarget is
called by mshtml simply to get the DropTarget object - probably once - and
not on every dragenter. Perhaps the call is made prior to my app being able
to connect up the interface? Perhaps GetDropTarget is called when the
AxShDocHost is initialized? This is certainly before I can hook my
IDocHostUIHandler into it using:
Try
' tell WebBrowser that we are its host

Dim obj As Object = wbrChart.GetOcx()

Dim oc As IOleObject = obj

oc.SetClientSite(Me)

wbrChart.RegisterAsDropTarget = True

Catch ex As Exception

End Try

Any light on this possibility?

""Jeffrey Tan[MSFT]"" <v-jetan@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:G$B983zZFHA.388@xxxxxxxxxxxxxxxxxxxxxxxx
> Hi Roy,
>
> Thanks for your feedback.
>
> I think you need some information of how to implement IDropTarget
interface
> in C#.
>
> In the link below, the community member provided a sample implement in C#
> with COM interop, for your information:
> http://itwriting.co.uk/phorum/read.php?f=3&i=265&t=265
>
> Also, the below article implemented IDropTarget interface in C++, however,
> the concept should be similiar in COM interop(note: the details
> implementation code can be found in the source code)
> "Drag And Drop between Window Controls"
> http://www.codeguru.com/Cpp/misc/misc/draganddrop/article.php/c349/
>
> Hope this helps
>
> 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: Printing HTML from Window Forms
    ... private static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, ... control) is not up to the task of printing reliably from a Windows Forms. ... Maybe you could suggest to the team in charge of WebBrowser that they should ... add a bit more functionality to the managed control so that you can specify a ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Context Menu for Embedded WebBRowser
    ... I don't remember how the WebBrowser control works. ... > Hi Paul ... > click on the context menu. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Multiple copies of webbrowser control and site logins
    ... > I have several processes accessing a website, each through a webbrowser ... I do not need to login to the site to access any information. ... > one webbrowser control are all the other instances automatically logged ... > semaphore to make sure I limit concurrent requests to a minimum. ...
    (microsoft.public.vc.mfc)
  • Re: WebBrowser Control - File Feld
    ... > Ich habe im Internet nur Infos gefunden dass es wegen der Sicherheit ... ich kenne aber eine Software die nutzt den ... du hast eine VB Software in der du das WebBrowser Control ...
    (microsoft.public.de.vb)
  • Re: Multiple copies of webbrowser control and site logins
    ... > I have several processes accessing a website, each through a webbrowser ... I do not need to login to the site to access any information. ... > one webbrowser control are all the other instances automatically logged ... > semaphore to make sure I limit concurrent requests to a minimum. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)