A
A
Andrey Begin2018-06-13 02:04:40
C++ / C#
Andrey Begin, 2018-06-13 02:04:40

How to make a window maximize in full screen in C#?

Goodnight!
How can I make a window expand to full screen so that it does not overlap the start bar?
There was an idea to find out the screen resolution, and then assign the desired size accordingly.
But I don’t want to reinvent the wheel, I think that there is another solution
The question is quite easy, but Google didn’t give any results ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
d-stream, 2018-06-13
@MoVVe

There are two options: either direct, as LiptonOlolo pointed out, and the form will then overlap or not overlap the start panel, depending on how the user wanted it and set up hiding the panel; or dancing with firstly finding out the location of the panel (and probably other informers) and calculating the available display area.

L
LiptonOlolo, 2018-06-13
@LiptonOlolo

WindowState = FormWindowState.Maximized;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question