Buongiorno,
Ringrazio della cortesia soprattutto della pazienza. Risolto
Buona giornata.
Domenico.
Ringrazio della cortesia soprattutto della pazienza. Risolto
Buona giornata.
Domenico.
Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
int x, y;
x = (this.Width - Form1.Width) / 2;
y = (this.Height - Form1.Height) / 2;
Form1.Location = new Point(x, y);
0 / 2 = 0
int larghezza = Screen.PrimaryScreen.Bounds.Width;
int altezza = Screen.PrimaryScreen.Bounds.Height;
e con questo dovrei ottenere la posizione del Form al centro:
x = (larghezza - Form1.Width) / 2;
y = (altezza - Form1.Height) / 2;
private void Form1_Resize(object sender, EventArgs e)
{
CenterToScreen();
}
private void Form1_Move(object sender, EventArgs e)
{
CenterToScreen();
}
Buongiorno,
Ringrazio della cortesia soprattutto della pazienza. Risolto
Buona giornata.
Domenico.