Hi,
I am new to Windows Form application. I got into a very weird situation, I have created a Form where I have placed few controls to the center of the screen. Everything works fine when I execute the application, all control looks good and in center of the form where I had place.
Now, the issue comes when I maximize the form, control move to top left corner and not to the center of the form.
Anonymous User
02-Mar-2015By default every control has an Anchor property set to Left, Top that’s why your controls move to top left of the screen when maximize.
Just change the Anchor property of the control to none.
Anonymous User
02-Mar-2015Write code to change the position of the control at runtime on Resize event of the form.