jonaskohl / CapsLockIndicator

A small utility that indicates the state of the Num lock, Caps lock and Scroll lock key.
https://cli.jonaskohl.de/
Apache License 2.0
346 stars 44 forks source link

Window opens for less than second then set to hide #38

Closed Yetoo1 closed 4 years ago

Yetoo1 commented 5 years ago

When I set Capslock Indicator to hide and start on Windows start up, the Capslock Indicator window shows up for less than second before it hides. I noticed this on a slow dual core 1 GHz Windows 7 laptop. I'm not sure if this can be fixed because it looks like InitializeComponent() is the culprit, but may be needed first to read properties to hide. I haven't tested yet.

jonaskohl commented 4 years ago

This is a limitation with the WinForms implementation and would be difficult to fix. This will be addressed in version 4 (which uses WPF for UI)

Yetoo1 commented 4 years ago

This appears fixed in the latest update. I'm assuming it's the added else statement (119-123) in MainForm.cs and if so, may I ask how this fixes it?

jonaskohl commented 4 years ago

Basically, I'm setting the MainForm's opacity to 0 and hide it from the taskbar (MainForm.cs:71-72) and if the window is not set to auto-hide or it gets shown manually later, I'm reverting these settings to normal (opacity 1, show in taskbar, MainForm.cs:121-122)

jonaskohl commented 4 years ago

I'm closing this now, as the issue seems to have been fixed with version 3.8.0.0