Access: Resize-hook

by Olaf Rabbachin 30. January 2002 21:36

If you'd like to prevent a form or the access-window from being resized below a certain level, the resize-event might be what you're using. However, I bet you're encountering a lot of flickering when doing so, right? Well, the flickering is caused due to the fact that - when this event triggers - the resize-action will already have taken place - leaving you one step behind events ...
Using subclassing, this sample database hooks into the windows-messaging-system which will be fired before the new size is passed to the form's resize-event.
Also in this sample: a small module which will help retrieve twips-per-pixel ratios.

This is one of the older entries that can also be found on the original Access-site.

Download: ResizeHook.zip (41.04 kb)


Location: SinglePost

Tags: , ,

Access/VBA

Add comment


(Will show your Gravatar icon)

  Country flag

Click to change captcha   

biuquote
  • Comment
  • Preview
Loading



About

Hi and welcome to my blog!

I'm a developer from Germany, currently focusing on .Net and WPF.

More about me ...