PDA

View Full Version : [VB6] Posizione di una form


OrcaAssassina
20-03-2006, 16:16
Nelle impostazione della form sotto POSIZIONE, c'è:

StartUpPosition

ed io l'impostato su "2 - CenterScreen"

Ora lo voglio via codice.

Ho scritto

Form2.StartUpPosition

Poi che valore devo mettere per fare tale operazione????

Ciao e grazieeeeeeeee

wingman87
20-03-2006, 18:22
Hai guardato sulla msdn? Seleziona "StartUpPosition" e premi F1.
Ps: Ma "form" non è maschile? :confused:

dvbman
21-03-2006, 22:48
Da msdn :

You can use one of four settings for StartUpPosition:

Constant Value Description

vbStartUpManual 0 No initial setting specified.
vbStartUpOwner 1 Center on the item to which the UserForm belongs.
vbStartUpScreen 2 Center on the whole screen.
vbStartUpWindowsDefault 3 Position in upper-left corner of screen.

OrcaAssassina
22-03-2006, 09:33
Ok grazieeeeeeee