I want to get width of windows form.
int x=this.Width;
But when form is maximised (on full screen) , if im on fullHD resolution(1920*1080) its returning 1536.
When i set resolution to 1600*900, its returning 1600 properly.
Also , since Im using new laptop, forms are little blury , i dont know why, but i have read that there is some kind of problem with high DPI screens, i didnt find solution so far.
This is my form designer generated code
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.ClientSize = new System.Drawing.Size(1902, 1033);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Form1";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Click += new System.EventHandler(this.Form1_Click);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown);
this.ResumeLayout(false);