Screen Sizing
-
Is there a way to program in vb.net for different screen sizes and resolutions ???
silver-gray
-
Is there a way to program in vb.net for different screen sizes and resolutions ???
silver-gray
-
Ray Cassick wrote:
Does Vista even support 640x480 anymore?
Yes they do.
-
Ray Cassick wrote:
I always try to program for the smallest and then make the forms resizable upwards if the users wants to.
I use this technique too. Luckily was told that I did not need to support resolutions below 1024x768 so I had more space to play with. :) Making forms cope sensibly with resizing can be interesting. Using anchor is limited. I used "Top, Left, Right " anchor for a text box and a user in UAT complained that the user interface looked horrible. She was always maximising her window and ended up with way wider text boxes then required. So I put in a minimum and maximum window size to make sure the display always looked sensible. If you are using .Net 2.0 you could also look at using the various flow layout options available in Windows Forms.
-
Are you saying that re-sizing is a manual thing? or is there a way to programmaticlly change it under the covers ??
silver-gray
-
Are you saying that re-sizing is a manual thing? or is there a way to programmaticlly change it under the covers ??
silver-gray
-
can you please elaborate. what do you mean "(anchoring, code,layout panels,etc)" Thanks
silver-gray
-
can you please elaborate. what do you mean "(anchoring, code,layout panels,etc)" Thanks
silver-gray
By 'anchoring' I mean the use of the anchor properties of controls placed on a form to allow them to attach to one area and then stretch in another direction when the form gets re-sized. Works OK for basic stuff but complicated forms can cause issues. By 'code' I mean capturing the current size of the form in the appropriate events and then manually resizing the controls using pure code. Lots of work and very hard to get right. It also tends to result in very 'brittle' code when you need to make changes in the design latter on. By 'Layout Panels' I mean placing a layout panel on the form and then allowing that to adjust the size of container controls. Good luck, and run a search or two in Google to get the rest. Sorry for being sketchy here, but this is one area where I could go done a slippery slope and end up writing code that I don't care to right for you. This is a 'give a man a fish vs. teach a man to fish' thing. Hope you understand.