# Hide the Close Button

**URL:** <https://forum.inductiveautomation.com/t/hide-the-close-button/23135>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 7, 2019, 6:54pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135 "2019-03-07T18:54:19Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![bchristenson](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bchristenson](https://forum.inductiveautomation.com/u/bchristenson)\
**Post date:** [March 7, 2019, 6:54pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/1 "2019-03-07T18:54:19Z")

</div>

Hi, Is there a way to hide the Close, Restore Down and minimize buttons in the top right corner? Or have a lock on it so only users with a username and password kand close the main screen?

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [March 7, 2019, 7:00pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/2 "2019-03-07T19:00:56Z")

</div>

Not sure about the Restore Down and minimize, but you could keep them from exiting by using a shutdown-intercept client event script. I would put some further logic in there in order to allow someone to close the project though without having to go through task manager.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/37c3da5dff73f9331fb14f497cda6a27503ebc92.png)

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [March 7, 2019, 7:02pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/3 "2019-03-07T19:02:15Z")

</div>

I gave an answer to a similar question [here](http://forum.inductiveautomation.com/t/close-desktop-intercept-event/22171/2?u=mrogers) but don’t have any full code or anything. But actually, @grietveld’s answer above looks better and definitely more supported by IA.

---

<div class="post-metadata">

**Author:** ![bchristenson](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bchristenson](https://forum.inductiveautomation.com/u/bchristenson)\
**Post date:** [March 7, 2019, 7:04pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/4 "2019-03-07T19:04:17Z")

</div>

Thanks! Is that all I would have to type in there or is there something else i would need to add to it?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 7, 2019, 7:07pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/5 "2019-03-07T19:07:21Z")

</div>

Java can’t prevent the user from killing the client via the task manager, reachable via ctrl-alt-del under all circumstances. If you need this for security, you’ll be disappointed.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [March 7, 2019, 7:07pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/6 "2019-03-07T19:07:53Z")

</div>

I would add in some level of permission check, or if you want a message box you could add that to the script. but that one line will keep it from exiting when the command is received.

I did stumble upon a small issue with this though. When a user is logged out, the exit button is re-enabled. So it isn’t completely fool proof.

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [March 7, 2019, 7:08pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/7 "2019-03-07T19:08:45Z")

</div>

Yeah, if its really important you’ll need some other safeguards, something that will lock things down from outside of Ignition. I know such things exist but couldn’t give any recommendations.

---

<div class="post-metadata">

**Author:** ![bchristenson](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bchristenson](https://forum.inductiveautomation.com/u/bchristenson)\
**Post date:** [March 7, 2019, 7:10pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/8 "2019-03-07T19:10:28Z")

</div>

But there is no way of hiding these buttons with a rectangle or something?

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [March 7, 2019, 7:13pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/9 "2019-03-07T19:13:52Z")

</div>

The only way to somewhat hide them would be to have the client launch in full screen, but Alt F4, ctrl-alt-del, and other keyboard commands are still enabled.  
Source: [https://docs.inductiveautomation.com/display/DOC79/Launching+Clients#LaunchingClients-FullScreenOption](https://docs.inductiveautomation.com/display/DOC79/Launching+Clients#LaunchingClients-FullScreenOption)

Those buttons are part of the frame that holds the application, so it wouldn’t be something you could hide behind an object. You would have to edit the properties of that frame.

---

<div class="post-metadata">

**Author:** ![bchristenson](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bchristenson](https://forum.inductiveautomation.com/u/bchristenson)\
**Post date:** [March 7, 2019, 7:32pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/10 "2019-03-07T19:32:08Z")

</div>

Okay thanks! I think launching it in full screen should be good enough!

---

<div class="post-metadata">

**Author:** ![drastura](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@drastura](https://forum.inductiveautomation.com/u/drastura)\
**Post date:** [December 9, 2019, 7:11am UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/11 "2019-12-09T07:11:33Z")

</div>

Launching in Full Screen doesn’t seem to hide that idiotic bar (application name, minimize, restore down, exit) in Windows 10 anymore. This is frustrating.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [December 9, 2019, 11:32pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/12 "2019-12-09T23:32:18Z")

</div>

Full screen mode clients work as expected (no title bar) for us on Windows 10 IoT Enterprise LTSB 64-bit without issues. Are you saying this is a problem after a certain Windows 10 update? Or it didn’t work the first time you tried on Windows 10?

---

<div class="post-metadata">

**Author:** ![drastura](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@drastura](https://forum.inductiveautomation.com/u/drastura)\
**Post date:** [December 10, 2019, 2:56pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/13 "2019-12-10T14:56:27Z")

</div>

I’ve got it FS, no title bar, on 7 Windows 10 boxes… On one newer Zotac Stick PC, I had to install the 1903 update (I think) to get that menu bar to hide. Now, this PC, all updates, I cannot make the bar go away.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [December 10, 2019, 3:43pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/14 "2019-12-10T15:43:01Z")

</div>

Does setting the window size to match monitor resolution in client startup script make any difference?

---

<div class="post-metadata">

**Author:** ![martinel3746](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@martinel3746](https://forum.inductiveautomation.com/u/martinel3746)\
**Post date:** [February 27, 2020, 7:43pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/15 "2020-02-27T19:43:50Z")

</div>

I put this in the Shutdown-Intercept Client Event Script:

> system.gui.messageBox( 'Closing this application is not allowed', 'Cannot Close' )  
> event.cancel = 1

Doesn't stop them from using task manager to kill it but makes it far more likely that the client will be up and running when I need it to be.

---

<div class="post-metadata">

**Author:** ![ian.sebryk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ian.sebryk/32/49319_2.png) [@ian.sebryk](https://forum.inductiveautomation.com/u/ian.sebryk)\
**Post date:** [January 9, 2024, 5:50pm UTC](https://forum.inductiveautomation.com/t/hide-the-close-button/23135/16 "2024-01-09T17:50:24Z")

</div>

I realize this is mucho late to the party, but there's a gamer utility called [WindowedBorderlessGaming](https://westechsolutions.net/sites/WindowedBorderlessGaming/download) that allows you to force a screen to a resolution AND remove the top window bar. Very useful for kiosks and circumventing Windoze stupid behaviours. Also great for gaming. 😉
