How To Create a Resolution-Independent Forms and controls in vb 6.0

Posted on 2008-02-01
Medium Priority
Last Modified: 2013-12-26
May I know how to Create a Resolution-Independent Form in vb 6.0 which can work in any screen resolution.
I have already tried the help of (http://support.microsoft.com/kb/182070) but it work only for the 1024*768 resolution and if i increase the resolution above this then all control are not come in original  designed way. As per the help of microsoft I have designed my application in 800*600 mode.

so pls tell me  how I can do the same.


LVL 86

Accepted Solution

Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 750 total points
ID: 20795977
The simplest way is to use a Resize control ... there are plenty out there for VB6:


plus more, just use your favorite search engine

If you want to do it yourself, this might help:

Expert Comment

ID: 20796922
by resolution independant, you would like the form to be ALWAYS at 800x600 or you would like it to resize to keep its relative size?


Sub Form_Resize ()
  If Me.WindowState = vbMinimized Then Exit Sub
  On Error Resume Next
  Text1.Left = 0
  Text1.Width = Me.ScaleWidth * 0.8 '80% Width
  On Error Goto 0
End Sub

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question