Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a picturebox to a location automatically
Message
From
28/02/2014 03:30:49
 
 
To
27/02/2014 13:32:59
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01595480
Message ID:
01595518
Views:
24
>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/
Previous
Reply
Map
View

Click here to load this message in the networking platform