Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting a picturebox to a location automatically
Message
De
28/02/2014 03:30:49
 
 
À
27/02/2014 13:32:59
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01595480
Message ID:
01595518
Vues:
25
>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/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform