C
C#2y ago
Sanne

❔ how can i get rid of this border (winform)

i tried to make it fill up my whole screen using this:
this.TopMost = true;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
this.TopMost = true;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
now, there's some kind of white border around it. does anyone know how i can get rid of it?
4 Replies
Buddy
Buddy2y ago
Most likely caused by margins - or it isn't filled
Sanne
Sanne2y ago
is there a way i can change it? ive never done any margin stuff in winforms before
boiled goose
boiled goose2y ago
just give a look at the borders properties of the form and the controls, you will find it
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.