What is setBounds and how do I use it?
You can use setBounds(x, y, width, height) to specify the position and size of a GUI component if you set the layout to null. Then (x, y) is the coordinate of the upper-left corner of that component.
You can use setBounds(x, y, width, height) to specify the position and size of a GUI component if you set the layout to null. Then (x, y) is the coordinate of the upper-left corner of that component.
There are multiple problems with absolute positioning: Different screen sizes and resolutions, what looks great on your machine would come out differently on another screen with a different resolution. In the same vein, what happens when a user resizes the screen because they want to run your application side by side with some other application … Read more
this.Location = Screen.AllScreens[1].WorkingArea.Location; this is the Form reference.