When using the built in ScrollBars property of a parent MDI Form. Is there a way to detect when one of the scrollbars appear or disappear?
Reason for doing so, is I've added a child form which has no top bar, caption etc and contains a picture box. The purpose is to place a dynamically positioned watermark image on the parent MDI form.
When the parent form resizes etc I am able to successfully re-position the child form, thus keeping the watermark image at the far bottom right.
I am running into an issue when other child forms cause scroll bars to appear. If the watermark form is re-positioned with scroll bars visible, a gap is left when the scroll bars disappear. I would like to be notified when a scroll bar disappears so that I can re-position the watermark form again.
It looks like the use of ScaleWidth and ScaleHeight take in to account the scrollbars.
Has anybody any ideas? Or perhaps some other suggestion to re-position when scroll bars are visible?