Results 1 to 4 of 4

Thread: Reloading a Form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    30
    There comes a point in my error handleing where if error 70 appears I have to reload my form.

    I'm currently using a statement like this:

    If Err.Number = 70 Then
    MsgBox "Database Access/Load Error"
    Unload SCS
    Load SCS
    SCS.Show

    And I'm wondering if there is a more professional way of reloading a form short of unloading it then loading it again (plus the flikcer that is the result of my form unloading then loading looks bad!)?

    Thanks,
    Brandr



  2. #2
    Guest
    You can shorten it a little by removing Load SCS.
    Code:
    If Err.Number = 70 Then 
        MsgBox "Database Access/Load Error" 
        Unload SCS  
        SCS.Show
    End If

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    30
    But Is There An Aucutal Command for Reloading a Form. I don't like the way the program flickers when the form is unloaded and then loaded again. Is this even stable in runtime?

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    When you unload the form, by necessity it has to be hidden, so no, there is no way round the flicker. A better alternative is to work out what is reset when the form is reloaded, and set it up again with the same instance.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

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



Click Here to Expand Forum to Full Width