.net - How to display picture box in the middle of the form regardless of the form's size? -


I have a text box that spans most of the form. Then I added a photo box to the form that will be visible on some conditions at the top of the text box by calling Bringtrophrint ().

When I change the form size when I run my application, the location of the image box does not change according to the form size, it always remains in one place. Is there any property that always helps to keep the photo box in the middle of the form?

Thank you!

In the designer, the picture box has been placed in the center of the form. Then anchor the picture box on the left, right, top and bottom to use the anchor feature.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -