How to hide standard Electron Menu ? #803

Closed
opened 2026-01-29 16:49:05 +00:00 by claunia · 1 comment
Owner

Originally created by @ZedZipDev on GitHub (Jun 4, 2022).

Originally assigned to: @GregorBiswanger on GitHub.

How to hide the standard Menu : File, Edit, View .... ? I do in Startup:

var window = await Electron.WindowManager.CreateWindowAsync();
window.RemoveMenu(); // <-------------
window.OnClosed += () => {
Electron.App.Quit();
};

```It works but: the app starts, the menu appears(!) for 2-3 secs and then disappeared. Is it possible to hide it at all?
Originally created by @ZedZipDev on GitHub (Jun 4, 2022). Originally assigned to: @GregorBiswanger on GitHub. How to hide the standard Menu : File, Edit, View .... ? I do in Startup: ``` var window = await Electron.WindowManager.CreateWindowAsync(); window.RemoveMenu(); // <------------- window.OnClosed += () => { Electron.App.Quit(); }; ```It works but: the app starts, the menu appears(!) for 2-3 secs and then disappeared. Is it possible to hide it at all?
claunia added the bug label 2026-01-29 16:49:05 +00:00
Author
Owner

@ggomarighetti commented on GitHub (Jun 9, 2022):

Resume

You can try passing as a parameter to the window manager the configuration to hide it automatically.
I attach an example.

Code

            var browserWindowOptions = new BrowserWindowOptions
            {
                AutoHideMenuBar = true
            };

            var browserWindow = await Electron.WindowManager.CreateWindowAsync(browserWindowOptions);
@ggomarighetti commented on GitHub (Jun 9, 2022): #### Resume You can try passing as a parameter to the window manager the configuration to hide it automatically. I attach an example. #### Code ``` var browserWindowOptions = new BrowserWindowOptions { AutoHideMenuBar = true }; var browserWindow = await Electron.WindowManager.CreateWindowAsync(browserWindowOptions); ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#803