K
K
KamAKAM2020-06-03 05:34:02
C++ / C#
KamAKAM, 2020-06-03 05:34:02

How to make it so that when you click on the picture (picture box) it opens in the middle size, that is, half the form?

What should I do so that when I click on the picture (picture box) it opens in the middle size, that is, in half of the form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-06-03
@firedragon

The form has a height and width, you set them. Also set the position. Then show the form.
Add this in the constructor of the new form, after initialization

this.StartPosition = FormStartPosition.Manual;
this.Location = new Point(0, 0);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question