Correction of DPI

This commit is contained in:
Aurélie Delhaie
2022-05-25 11:58:09 +02:00
parent 5f92fcafa0
commit 56e94d8dfe
27 changed files with 517 additions and 441 deletions

View File

@@ -50,34 +50,38 @@
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(1061, 135);
this.pictureBox1.Size = new System.Drawing.Size(747, 81);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// ServerTextBox
//
this.ServerTextBox.Location = new System.Drawing.Point(283, 213);
this.ServerTextBox.Location = new System.Drawing.Point(198, 128);
this.ServerTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ServerTextBox.Name = "ServerTextBox";
this.ServerTextBox.PlaceholderText = "myserver.com";
this.ServerTextBox.Size = new System.Drawing.Size(392, 31);
this.ServerTextBox.Size = new System.Drawing.Size(276, 23);
this.ServerTextBox.TabIndex = 1;
//
// UsernameTextBox
//
this.UsernameTextBox.Location = new System.Drawing.Point(283, 301);
this.UsernameTextBox.Location = new System.Drawing.Point(198, 181);
this.UsernameTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.UsernameTextBox.Name = "UsernameTextBox";
this.UsernameTextBox.Size = new System.Drawing.Size(514, 31);
this.UsernameTextBox.Size = new System.Drawing.Size(361, 23);
this.UsernameTextBox.TabIndex = 3;
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
this.label1.Location = new System.Drawing.Point(283, 185);
this.label1.Location = new System.Drawing.Point(198, 111);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(61, 25);
this.label1.Size = new System.Drawing.Size(39, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Server";
//
@@ -85,9 +89,10 @@
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
this.label2.Location = new System.Drawing.Point(283, 273);
this.label2.Location = new System.Drawing.Point(198, 164);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(91, 25);
this.label2.Size = new System.Drawing.Size(60, 15);
this.label2.TabIndex = 0;
this.label2.Text = "Username";
//
@@ -95,17 +100,19 @@
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
this.label3.Location = new System.Drawing.Point(283, 342);
this.label3.Location = new System.Drawing.Point(198, 207);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(87, 25);
this.label3.Size = new System.Drawing.Size(57, 15);
this.label3.TabIndex = 0;
this.label3.Text = "Password";
//
// PasswordTextBox
//
this.PasswordTextBox.Location = new System.Drawing.Point(283, 370);
this.PasswordTextBox.Location = new System.Drawing.Point(198, 224);
this.PasswordTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.PasswordTextBox.Name = "PasswordTextBox";
this.PasswordTextBox.Size = new System.Drawing.Size(514, 31);
this.PasswordTextBox.Size = new System.Drawing.Size(361, 23);
this.PasswordTextBox.TabIndex = 4;
this.PasswordTextBox.UseSystemPasswordChar = true;
//
@@ -113,16 +120,18 @@
//
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
this.label4.Location = new System.Drawing.Point(681, 185);
this.label4.Location = new System.Drawing.Point(477, 111);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44, 25);
this.label4.Size = new System.Drawing.Size(29, 15);
this.label4.TabIndex = 0;
this.label4.Text = "Port";
//
// PortNumericBox
//
this.PortNumericBox.InterceptArrowKeys = false;
this.PortNumericBox.Location = new System.Drawing.Point(681, 213);
this.PortNumericBox.Location = new System.Drawing.Point(477, 128);
this.PortNumericBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.PortNumericBox.Maximum = new decimal(new int[] {
65535,
0,
@@ -134,7 +143,7 @@
0,
0});
this.PortNumericBox.Name = "PortNumericBox";
this.PortNumericBox.Size = new System.Drawing.Size(116, 31);
this.PortNumericBox.Size = new System.Drawing.Size(81, 23);
this.PortNumericBox.TabIndex = 2;
this.PortNumericBox.Value = new decimal(new int[] {
443,
@@ -144,9 +153,10 @@
//
// LoginButton
//
this.LoginButton.Location = new System.Drawing.Point(685, 439);
this.LoginButton.Location = new System.Drawing.Point(484, 263);
this.LoginButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.LoginButton.Name = "LoginButton";
this.LoginButton.Size = new System.Drawing.Size(112, 34);
this.LoginButton.Size = new System.Drawing.Size(75, 23);
this.LoginButton.TabIndex = 5;
this.LoginButton.Text = "Login";
this.LoginButton.UseVisualStyleBackColor = true;
@@ -156,9 +166,10 @@
//
this.AboutButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.AboutButton.Image = ((System.Drawing.Image)(resources.GetObject("AboutButton.Image")));
this.AboutButton.Location = new System.Drawing.Point(12, 471);
this.AboutButton.Location = new System.Drawing.Point(8, 283);
this.AboutButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.AboutButton.Name = "AboutButton";
this.AboutButton.Size = new System.Drawing.Size(25, 25);
this.AboutButton.Size = new System.Drawing.Size(18, 15);
this.AboutButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.AboutButton.TabIndex = 6;
this.AboutButton.TabStop = false;
@@ -166,10 +177,10 @@
//
// LoginForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(1061, 508);
this.ClientSize = new System.Drawing.Size(747, 315);
this.Controls.Add(this.AboutButton);
this.Controls.Add(this.LoginButton);
this.Controls.Add(this.PortNumericBox);
@@ -183,10 +194,11 @@
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(1083, 564);
this.MaximumSize = new System.Drawing.Size(763, 354);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(1083, 564);
this.MinimumSize = new System.Drawing.Size(763, 354);
this.Name = "LoginForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Login to a server";