Re: How to make form resize for the screen resolution?

From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 02/04/04


Date: Wed, 4 Feb 2004 12:07:42 -0800

One way is to design the form at 800x600 and scale everything up for higher resolutions.
It's always easier to make things larger due to font issues and available space. The
article below outlines a few things you can do too.

HOWTO: Create a Resolution-Independent Form
http://support.microsoft.com/default.aspx?scid=kb;en-us;182070&Product=vbb

Large/Small system font settings have a huge impact on your coordinate system as well.
Since Large Fonts give you 12 twips per pixel and Small Fonts give you 15 twips per pixel,
it's always a good idea to code everything in pixels and convert to twips as required
using the Screen.TwipsPerPixelX/Y values.

Quite a few of the samples below are "drop in" components that do the grunt for you.

Search Results: Page 1 of 20 found. Entries 1 - 10 of 192 found
http://www.planetsourcecode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&txtCriteria=resize+form&lngWId=1&B1=Quick+Search

-- 
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..
"Sylmena" <sylvain_menard@hotmailNoSpam.com> wrote in message
news:d3cUb.26855$o5.392724@wagner.videotron.net...
> I am new to VB and have a problem. I design my form with a resolution of
> 1024 x 768 and everything is at its place. But when I lower my resolution to
> 800 x 600 then the botom half of my form is not visible. How can I solve
> this problem?
>
> Here is my form_load.
>
> Private Sub Form_Load()
> On Error GoTo errForm
>     ChDir App.Path
>     ChDrive Left$(App.Path, 1)
>     dateTxt.Text = Format(Date)
>
>     mainfrm.CurrentX = 12000
>     mainfrm.CurrentY = 9000
> errForm:
>             Exit Sub
> End Sub
>
>
> Sylvain Menard
> sylmena@videotronNoSpam.ca
>
> To reply please remove the NoSpam.
>
>


Relevant Pages

  • Re: Vector Graphics - was MFC and GDI+
    ... The solution is to use a music font; ... which can end up being either one pixel or two pixels wide depending on the layout. ... Vector GRAPHICS representations of musical symbols don't work well because the mappings to ... Nowadays printers generally gave a better resolution, ...
    (microsoft.public.vc.mfc)
  • Re: new FreeBSD-webpage
    ... > If you try it with a screen resolution of 800x600 it will fill all the ... Sorry to disagree, but, fixed width and direct font size controlling, ... web design is to add to your constraint the fact that the client will ... read the first time (I think I've never take the time to fully read ...
    (freebsd-stable)
  • Re: Size of Access Form
    ... Windows font size to "Other" - 105% which makes menus, message boxes, ... We have the resolution at 1024x768. ... to a larger display such that the increase in the physical size of the display ... The font-size setting for Windows should have made the text in your Access forms ...
    (microsoft.public.access.forms)
  • Re: [PHP] Re: posting variables to parent frame
    ... that there's no real standard for resolution. ... Atm, i repeat small images around the borders, but that's a real pain ... That will allow your users to change the font size on their browser to their preference without screwing up your design. ...
    (php.general)
  • RE: Font Size
    ... "Denise" wrote: ... The font size in Display Properties is ... On Appearance Tab make sure this option is set correctly: ... "Click on Settings and change the resolution to lower resolutions than the ...
    (microsoft.public.windowsxp.perform_maintain)

Quantcast