try to learn
-
Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.
-
Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.
Have a look at the control's anchor and dock proprties. You may also want to look at one of the layout panels such as FlowLayoutPanel or TableLayoutPanel.
Dave
Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum. Astonish us. Be exceptional. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.
-
Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.
smokindinesh wrote:
when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.
That is the correct behavior. Getting a bigger screen/higher resolution means that there's more that fits on the screen, not that the computer stretches the old screen to fill it. Yes, the form will look differently on different screens, and you'll have to design with that in mind. A checkbox should always have the default height. It'll become smaller if the resolution goes up, but you shouldn't "rescale"; otherwise your app will look very funny with it's huge checkboxes :) You can lock controls in a position, and have them "grow" to fill the remaining space. That wouldn't work (or look) well with a checkbox, but would do the trick on a multiline textbox. Research "Docking" and "Acnhoring" to have them grow with the form.
Bastard Programmer from Hell :suss:
-
Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.
If you really want a 'zoom' to any size functionality, you might look at WPF rather than WinForms. Note that it is technically possible to ... when a screen size change occurs ... to calculate a ratio of change, and to recursively visit every control in every container, and alter the sizes and positions of each one ... and even scale-up the fonts, but, believe me, you do not want to go there ! :) Whether you could actually achieve some "magnification" or "miniaturization" effect by using API calls to change the screen resolution on the fly ... who knows, but I think that, too, would be an uglification (some DirectX games for example, go full-screen). Get a good grip on 'Anchor and 'Dock, and the roles of 'Padding and 'Margin, as others have suggested here, and I think you can achieve a solution that will satisfy you. best, Bill
"Last year I went fishing with Salvador Dali. He was using a dotted line. He caught every other fish." Steven Wright