Re: How to make form resize for the screen resolution?
From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 02/04/04
- Next message: Ken Halter: "Re: Print # statement with TAB is puuting in spaces, not tabbing to the column number."
- Previous message: Bob Butler: "Re: Print # statement with TAB is puuting in spaces, not tabbing to the column number."
- In reply to: Sylmena: "How to make form resize for the screen resolution?"
- Messages sorted by: [ date ] [ thread ]
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. > >
- Next message: Ken Halter: "Re: Print # statement with TAB is puuting in spaces, not tabbing to the column number."
- Previous message: Bob Butler: "Re: Print # statement with TAB is puuting in spaces, not tabbing to the column number."
- In reply to: Sylmena: "How to make form resize for the screen resolution?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|