BornToBeRoot / NETworkManager

A powerful tool for managing networks and troubleshoot network problems!
https://borntoberoot.net/NETworkManager/
GNU General Public License v3.0
6.29k stars 660 forks source link

Feature: Reset window size & position #1623

Open thongor77 opened 1 year ago

thongor77 commented 1 year ago

Describe your issue: I'm using multiple screen, three at Office, two at home, last time I used NETworkManager the window was on the third screen at Office today I'm at home with my two screens but I'm seeing only the bottom of the window of the apps (screenshot)

Steps to reproduce the issue:

1.launch the apps, put it on third screen, close the apps, reopen, still on third screen 2.going home , launching apps seeing bottom of the window, trying cascade window, stack window, window side by side tha NETworkmanager window never come back on the current screens (home with two monitors) 3.the black part at the up left of the screenshot is the NETWorkManager window

NETworkManager version: last one Windows version: 10 - 21H2 .NET-Framework version:

Screenshots window side by side window stacked cascade Window

Eventlog (if application crashes)
thongor77 commented 1 year ago

found how to get my window back, going to the Icon on the bottom bar waiting for the small picture to open, right click on the small picture and choose maximize, this is putting the windows on my second screen maximise

BornToBeRoot commented 1 year ago

Hi @thongor77,

i had this problem with other applications as well. The problem occurs due to the changed displays in Windows. The underlying library for the window/design stores the position of the window.

The simples way to fix this is to select the window in the taskbar with a right click and select move. Then you can move the window with the arrow keys.

Alternatively you can delete the the part:

<MahApps.Metro.Controls.WindowApplicationSettings.NETworkManager.MainWindow>

in the following file:

%LocalAppData%\NETworkManager\NETworkManager_<RANDOM_STRING>\<VERSION>\user.config


I will add a command line parameter to reset the window size & position.

BornToBeRoot commented 1 year ago

Available in MahApps.Metro 3.0