Jose Carlos Balantakbo
Jose Carlos Balantakbo

Reputation: 169

How to launch browser in kiosk mode but not full screen in C#

I'm creating a console application in C# which launches a browser in kiosk mode. The problem is that it occupies the whole screen.

Is it possible for the window to be smaller and draggable?

launcherUrl = string.Format("{0}{1}{2}", ConfigurationManager.AppSettings.Get("LauncherUrl"), computerName, "&UserName=" + userName);
Process.Start(ChromePath, "--kiosk " + launcherUrl);

This is what it looks like in full screen. enter image description here

Upvotes: 2

Views: 5457

Answers (1)

Jose Carlos Balantakbo
Jose Carlos Balantakbo

Reputation: 169

I have managed to solve my problem.

Replaced:

Process.Start(ChromePath, "--kiosk " + launcherUrl);

with

Process.Start(ChromePath, "--app=" + launcherUrl);

Upvotes: 9

Related Questions