Results 1 to 2 of 2

Thread: the scope of new form instance

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Slovenia
    Posts
    43

    the scope of new form instance

    i create an instance of form with the code:

    Dim formA as New Form1

    then i enable formA. In some cases i would like to disable formA, then enable Form2, perform some tasks and then enable formA again. But in form2 there seems that formA is an unknown object?
    Andrej Zalar

  2. #2
    nullus
    Guest
    whereabouts have you declared formA? you should declare it in a standard module like this:

    VB Code:
    1. Public formA As New Form1

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