Home > Mobile >  How can I resize cefsharp devtools when it is minimized?
How can I resize cefsharp devtools when it is minimized?

Time:06-18

When using cefsharp on winforms, after opening devtools, when minimized, devtools disappears! It is not in the taskbar. It cannot be opened again. What should I do? Call browser.ShowDevTools() again and it will not come out. How can I resize it?

CodePudding user response:

If at all possible I'd suggest you upgrade to the current supported version (102 at time of writing), you'll get a huge number of bug fixes and improvements.

In newer versions the DevTools Window will appear in the task bar. This behaviour was changed in version 79, relevant commit.


If you are unable to upgrade then you'll need to change how you open DevTools.

The following should hopefully work, I've not tested.

var host = chromiumWebBrowser.GetBrowser().GetHost();

var windowInfo = new WindowInfo();
windowInfo.SetAsPopup(null, "DevTools");

host.ShowDevTools(windowInfo);
  • Related