|
Rank: Advanced Member Groups: Member
Joined: 2/11/2016 Posts: 35
|
In this event http://www.essentialobjects.com/doc/eo.webbrowser.webview.needcredentials.aspxI have the NeedCredentialsEventArgs.Continue() method, but have not a cancel method
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,203
|
Hi,
You do not need a Cancel method. Just leave the event handler empty and it will be canceled.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/11/2016 Posts: 35
|
Thank you, Also, you can answer about drag&drop events? I not found any way for catch the events for example, this events not fire:
Code: C#
EoBrow.AllowDrop = true;
EoBrow.WebView.AllowDropLoad = true;
EoBrow.DragEnter += (sender, args) =>
{
Console.WriteLine();
};
EoBrow.DragDrop += (sender, args) =>
{
Console.WriteLine();
};
EoBrow.DragLeave += (sender, args) =>
{
Console.WriteLine();
};
EoBrow.DragOver += (sender, args) =>
{
Console.WriteLine();
};
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,203
|
Hi,
The standard drag and drop events are not supported on the WebBrowser control. Web page drag and drop are handled by the page itself. There are certain built in drag drop actions such as you can drop a file into the WebBrowser to load it (controlled by WebView.AllowDropLoad property). And there are other custom drag drop action that can be implemented by JavaScript code in the page, which would be completely up to the code in the page and you can not override those behaviors from out side. In either case, you can not handle drag drop event the same way as you do with other controls.
Thanks!
|
|