How to disable open page in new window? #3896
Replies: 4 comments 3 replies
-
Even if I can simulate the redirect prefectly, I think it is really stupid to do so much works, including manually extract every step in the process, just to simulate a single click. There should be a bettter way to do such works |
Beta Was this translation helpful? Give feedback.
-
In future please use discussions to ask questions. https://github.com/cefsharp/CefSharp/discussions
It is possible see #3529 (comment) The project source has a working example |
Beta Was this translation helpful? Give feedback.
-
thanks, but How I can use it in my project? I just couldn't use Create()... |
Beta Was this translation helpful? Give feedback.
-
@amaitland I came back to say thank you that your perfectly solve my problem, I think that the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I search a lot, to do so is to use OnBeforePopup to handle
However, here's the problem:
At first, I tried to disable the new windows, but all I can found is this:
However, it won't work well, I guess this popup includes referer and cookies, without which the redirect won't go as usual.
So I have to use this:
So that now I can handle the new window via the global variable pop.
However, I just can't put the pop into any panel.
When I try this:
panel1.Controls.Add(pop);
the new window just resized, but it won't go into the panel
So my question are below:
Beta Was this translation helpful? Give feedback.
All reactions