Using [I]MoveSize[/I]

deville75

Registered User.
Local time
Today, 05:15
Joined
Jan 8, 2007
Messages
24
In my program I'm using the MoveSize method to position my windows and resize them appropriately. Does anyone know if is possible to enter, for example 'max'. I've tried it but it says that the parameters must be numerical values.

Basically I want the program to be able resize to the max size on a computer. Since this is different on different computers (due to different resolutions) I need to be able to resize the windows and position them with respect to the computers resolution. Does anyone know how to do this?
 
deville75 said:
In my program I'm using the MoveSize method to position my windows and resize them appropriately. Does anyone know if is possible to enter, for example 'max'. I've tried it but it says that the parameters must be numerical values.

Basically I want the program to be able resize to the max size on a computer. Since this is different on different computers (due to different resolutions) I need to be able to resize the windows and position them with respect to the computers resolution. Does anyone know how to do this?

If I have understood the question correctly, is there some reason you cannot use DoCmd.Maximize? I think this should work unless you are looking to only maximize in one dimensions (horizontal or vertical).

There are methods of measuring the window dimmensions and using them to size your form or whatever. An early version of my database had this when I was down a blind alley of modal forms. If this is what you want to do, then I can attempt to dig out my old db and see how I did it.

Of course, by the time I find this archived db, you should hope that an Access 'grown-up' wil have helped you more directly :)
 
Keith Nichols said:
If I have understood the question correctly, is there some reason you cannot use DoCmd.Maximize? I think this should work unless you are looking to only maximize in one dimensions (horizontal or vertical).

There are methods of measuring the window dimmensions and using them to size your form or whatever. An early version of my database had this when I was down a blind alley of modal forms. If this is what you want to do, then I can attempt to dig out my old db and see how I did it.

Of course, by the time I find this archived db, you should hope that an Access 'grown-up' wil have helped you more directly :)

DoCmd.Maximize would maximize all dimensions. What I want to do is maximize only one dimension (the width) and the height needs to be with respect to the number of windows. So if I open 4 windows I'd say 'maxHeight'/4 or something like that. Is this what you did?
 

Users who are viewing this thread

Back
Top Bottom