Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flickering Forms. 3

Status
Not open for further replies.

Neoduder

Technical User
Feb 24, 2003
10
US
Hi All,

I have designed a database using forms as a user interface. To make everything look neat I have removed all the toolbars at the top of the screen and also have a macro which maximises each form on 'Open' and 'Activate'. Unfortunately this has had the side-effect of making all the forms flicker when opening. It looks like the form initially takes the original size (When the toolbars did exist) and then flickers as it resizes to the maximum screen size. Does anybody have any ideas how I can get rid of this annoying effect. Thanx in advance.

Chris
 
You can turn echo off at the beginning of the macro and turn it back on at the end. This will prevent repaints during the resize.

HOWEVER, I wouldn't recommend doing this in a macro. There is no error handling in macros. In the event of an unhandled error with echo off your app will appear to freeze. I'd suggest you do this in vba where you can incorporate a proper error handler. In the error handler you turn echo back on to avoid a potential 'freeze'. "The Key, The Whole Key, and Nothing But The Key, So Help Me Codd!"
 
Another trick you might try is to open the form in HIDDEN mode first, then MAXIMIZE it, and then "un-hidden" it (me.visible=true). That way, the form is already maxed out when it opens.

e.g.,

~~~~~~~~~~~~~~~~~~~~~~
Docmd.OpenForm &quot;xxxx&quot;, , , acHidden (<-- I THINK it's fourth arg, not sure)

Docmd.Maximize
Forms!xxxx.Visible = True

~~~~~~~~~~~~~~~~~~~~~

or words to that effect.

Jim Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top