CefSharp BrowserControl - Image Hyperlinks open in new Form

525 views Asked by At

Hope somebody could give me some advice or point me into some direction.

Im using CefSharp Browser Control in an application, one if the things that im struggling with is when i click on Image Hyperlinks (or any hyperlinks for that matter) it shows a Windows Form where the image is displayed, i fiddled around in the RequestHandler on the OnBeforeBrowse method and added the following:

if (ValidateURL(request.Url))
            {
                System.Diagnostics.Process.Start(request.Url);
                return true;
            }

        return false;

Where the ValidateURL does some REGEX checks.

What i have noticed is that a Windows Form (Blank Windows Form) still opens up and the image on my Browser (expected).

Where can i double check to not show the blank Windows Form, or hide it?

Version: Chromium 39.0.2171.95 CEF: r2069, CefSharp: 39.0.2.0

Regards Jean

0

There are 0 answers