Author Topic: Need to suppress messagebox/popup from WDE browser  (Read 3114 times)

Offline Srinivas

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Need to suppress messagebox/popup from WDE browser
« on: January 06, 2017, 08:26:13 AM »
Hi All,

How to suppress messagebox/popup from a WDE browser, which has been added as a toggle view InteractionExtensionSampleModule, once the interaction begins.

Thanks

Offline daniel_san

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 1
Re: Need to suppress messagebox/popup from WDE browser
« Reply #1 on: January 10, 2017, 10:27:47 AM »
Request not clear, at least for me.

May you post a picture?

Offline abudwill

  • Full Member
  • ***
  • Posts: 157
  • Karma: 4
Re: Need to suppress messagebox/popup from WDE browser
« Reply #2 on: February 09, 2017, 05:21:25 PM »
Srinivas,

In the past when I have embedded the System.Windows.Controls.WebBrowser control within a custom WDE view, pop ups have always been suppressed by default.  In fact, to have the ability to intercept and cause pop ups, I have had to intercept the NewWindow2 and NewWindow3 events to even support pop ups.

I think we would need more information from you to answer properly.

Also, consider not using this WebBrowser control in general, it is pretty terrible and leaks memory.  There are 3rd party C# WebBrowser plugins you could use (some free, some for pay).

Regards,
Andrew

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: Need to suppress messagebox/popup from WDE browser
« Reply #3 on: February 10, 2017, 08:30:28 AM »
Hi Andrew,

Have you used any third party C# WebBrowser controls, and if so which ones would you recommend.

As you say the Microsoft WebBrowser controls is not as good as it should be.

Thanks,

Pete.

Offline abudwill

  • Full Member
  • ***
  • Posts: 157
  • Karma: 4
Re: Need to suppress messagebox/popup from WDE browser
« Reply #4 on: February 15, 2017, 06:30:37 PM »
I did a lot of looking into CefSharp (https://www.nuget.org/packages/CefSharp.WPF/).  In my particular case we ended up making due with the Microsoft WebBrowser control.

There are a few based on chromium.  Cefsharp was one I looked into and there was another, but I cant remember the name :(

Regards,
Andrew