A
A
andrey_levushkin2020-03-05 20:04:02
.NET
andrey_levushkin, 2020-03-05 20:04:02

Why don't the form and the image on it take up the entire screen?

The form has a size of 1920x1080 (actually, like the current resolution of my screen where I'm testing).
You need to open a form with an image (PictureBox) full screen on top of all windows and so that there are no icons (Close, minimize, maximize) - as in a full-screen game,
PictureBox made the size 1920x1080 and placed it at coordinates 0; 0

As a result, an empty piece still remains forms on the right, although the picture with a resolution of 1920x1080
Nl5FmAy82tQ.jpg

I open the form in full screen due to these parameters:

this.WindowState = FormWindowState.Maximized;
this.TopMost = true;  //Поверх всех окон
this.FormBorderStyle = FormBorderStyle.None;  //Убираем интерфейс

Other form parameters:
diV5Fx2_LLo.jpg2F8lLibwbox.jpgsEpdZSuAOHg.jpg

Parameters of the PictureBox itself with a picture:
b4wPBI-Tupc.jpgKafnGqFY2LA.jpg

Maybe something needs to be changed somewhere? Or is there another way to open the program in full screen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andrey_levushkin, 2020-03-05
@andrey_levushkin

Problem solved by using the Anchor parameter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question