79552419

Date: 2025-04-03 08:49:02
Score: 0.5
Natty:
Report link

Well, I got the idea from Wael Ltifi to resize my window when opening my component.

I know it's not a clean solution at all, but given the urgency and the fact that I'm not a C# expert, it's the only workaround I could find.

I added this code right after opening my editor.

var window = this;
bool isMaximized = window.WindowState == FormWindowState.Maximized;

if (isMaximized)
{
    window.WindowState = FormWindowState.Normal;
    window.Width -= 10;
    window.Width += 10;
    window.WindowState = FormWindowState.Maximized;
} else
{
    window.Width -= 10;
    window.Width += 10;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PépéMax