>Hello everyone;
>
>I have a winform that has a pictureboxcontrol, I need set this in the upper right corner, but the form is maximized automatically; whit this code:
>
>Me.WindowState = FormWindowState.Maximized
>
>How I can calculate the new location of the pictureboxcontrol and put it in that position, depending on the size of the screen.
>
>Thanks in advance.
See the Control.Anchor and Control.Dock properties. Also a fairly good description here :
http://www.techrepublic.com/article/manage-winform-controls-using-the-anchor-and-dock-properties/