Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Modal UserForm (XP; SP3)

    I have a modal userform that when called via code to show ie "userform1.show false" is displayed correctly. When code is run in the background the userform is not being displayed as when it first was called. It almost seems like a memory issues.

    The userform is quite simple. There is a label in the form that says "Please Wait". After a while the user can not see the text "Please Wait".

    Any ideas as to why?

    Thanks,
    John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Modal UserForm (XP; SP3)

    If you open the form using .Show False, it is NOT modal. Apparently, the form is not being redrawn correctly. See if it helps if you insert

    DoEvents

    and/or

    UserForm1.Repaint

    in the code being executed. In particular, if you have a loop, insert one or both lines inside the loop.

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Modal UserForm (XP; SP3)

    Hans,

    Your suggestion to insert DoEvents did resolve the issue I was encountering.

    Thanks,
    John

Posting Permissions

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