PLEASE! 3rd Repost! Why is NO ONE answering my (simple) question?!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

MS has changed things since the last time I had to write this code, and the syntax (that USED to work) with screen.width, now errors. (I THINK it has somthing to do with appilication.somthing.widow.somthingelse

Could someone help me translate this into current VB

IF ((form's height + FormTop) > Access Window Height) OR ((form's width+ Formleft) > Access Window width) THEN ..

i.e. IF my form window is sticking off the sides of the Access window, THEN I'll moveSize it accordingl

the "form's height + FormTop" I already have. its the Access window dimesions I need
AHA, TI
blm
 
I am sure that the reason people are not answering is not that they
ignore you, but they just don't have the answer off top of their head. I
for one have never used this feature, so I can't be of help!
I can only suggest looking at the Screen and Application objects and
their properties - I am sure the dimensions you need are there somewhere.
Sorry,
Pavel
 
blm said:
MS has changed things since the last time I had to write this code,
and the syntax (that USED to work) with screen.width, now errors. (I
THINK it has somthing to do with
appilication.somthing.widow.somthingelse)

Could someone help me translate this into current VB:

IF ((form's height + FormTop) > Access Window Height) OR ((form's
width+ Formleft) > Access Window width) THEN ...

i.e. IF my form window is sticking off the sides of the Access
window, THEN I'll moveSize it accordingly

the "form's height + FormTop" I already have. its the Access window
dimesions I need.
AHA, TIA
blm

It would probably help if you posted the code that is no longer working,
the error message that you get, and the line on which the error is
raised. I'm not aware of anything that has changed in this general area
since Access 95. You may also find Nicole Calinoiu's clFormWindow class
handy for this sort of thing:

http://www.mvps.org/access/forms/frm0042.htm
 
Back
Top