Making forms screen resolution independant

bjsteyn

Registered User.
Local time
Today, 17:19
Joined
May 15, 2008
Messages
113
How can I make my forms independant of screen resolution?
So that everything stays the same size no matter what reselution?

Thanks bj
 
I believe the issue is not whether you can define your own objects to be RI, but rather that the objects used such as buttons, windows, title bar and so forth are based on icons that are RI, and in current Windows implementation, they are not.

RI has to be implemented by Windows (or any other OS), then it's up to the developer to make use of it.

That said, I believe there is an utility to automatically resize the form for different monitor resolutions if you google a bit.


PS The cat killed the curiosity: Here's a list of options you can do..
 
Last edited:
Thanks Banana

You cant maybe help me with a problem?

I split my DB into a FE and a BE since I have done it my order form is giving me a problem.

When I use my filter on my orders form (to select a product easier) my previous selected products dissapear. I have attached two pics so that you can understand my problem better.

My Current code for my filter is:
Private Sub btnSearch_Click()
Dim strFilterSearch As String
strFilterSearch = Nz(Me!txtSearchFilter, "*")

Me![Orders Subform].Form!ProductID.RowSource = "SELECT ProductName,ProductID,Discontinued FROM Products WHERE [ProductName] Like '*" & strFilterSearch & "*'ORDER BY ProductName"
'Debug.Print "SELECT ProductName,ProductID,Discontinued FROM Products WHERE [ProductName] Like '*" & strFilterSearch & "*'ORDER BY ProductName"

Me!ListCount = Me![Orders Subform].Form!ProductID.ListCount

end sub
 

Attachments

  • Before Filter.jpg
    Before Filter.jpg
    96.3 KB · Views: 152
  • After Filter.jpg
    After Filter.jpg
    92.6 KB · Views: 146
What happens if you add this:

Code:
Me![Orders Subform].Form!ProductID.Requery
before the list count line?
 
It is still doing the same thing.
Ill just create a demo quickly of my db with the orders form and attach it.
 
If I may, I'd suggest you start a new thread with the appropriate title so others can help as well.
 
its not just resizing forms though, its also moving/resizing the controls relative to the various edges of the form.
 
The Link of banana helped for the form/control resizing on screen reselution . My buttons forms etc are resizing.
 

Users who are viewing this thread

Back
Top Bottom