Results 1 to 2 of 2

Thread: MDI Form Scrollbar(s) appear/disappear

  1. #1
    New Member
    Join Date
    Jan 08
    Posts
    10

    MDI Form Scrollbar(s) appear/disappear

    Hi Guys

    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?

    Kind Regards

    jwal

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •