Hi guyz, anyone here who know how to set your form in a full screen in any type of screen resolution.
Like for example im working here in my pc with a resolution of 1366x768 now if i want my application to run in another pc with another screen resolution i want to fit it with the size of that screen.

Thnx in advance

Recommended Answers

All 5 Replies

form1.size = new Size(Screen.PrimaryScreen.Bounds.Width,Screen.PrimaryScreen.Bounds.Height)

I believe that's what you want. Hope it helps. :)

Just set the form's WindowState property to Maximized

anyways i want also the content of that form to be resize also like in a browser. The content will be resize when i press the maximize. thnx

Making the form independent of resolution is difficult. That is why MS has brought in WPF. You can try using Layouts in form design.. Let us know if you get any sollution :)

anyways i solve it using anchors. thnx anyways for your reply :D`

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.