Results 1 to 7 of 7

Thread: How to load a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3

    Exclamation

    i know that this is a rather simple question and i should probably know the answer, but i have never needed to do it before. how do i load a form from an event procendure? i when it loads up (the second form) things will be executed in the load procedure.
    thank you for you help.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    'event procedure
    Load FormWhaever
    FormWhatever.Show
    'and if you want the present form out of the way
    FormMain.Hide
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    263
    Code:
    UserForm1.Show
    Hope this helps
    Thanks Alot,

    David Gottlieb
    CIW Certified Internet Webmaster
    Web Developer/Designer

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3
    thank you much. the only problem is that i need to use the load procedure of the new form to print items on the form, but it doesn't seem to be working. any ideas?
    thanks

  5. #5
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Use the form Activate event not the load event.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  6. #6
    Guest
    Actually Load() will work. Just make sure the AutoRedraw is set to True.
    Code:
    Private Sub Form_Load()
        AutoRedraw = True
        Print "Hello"
    End Sub

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3
    The AutoRedraw seems to have done the trick.
    thanks megatron and everyone alse. I would never have guessed about the autoredraw

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