Results 1 to 3 of 3

Thread: Control to a form...

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    36
    I have one centrally controlling form that needs to pass control to another form, wait for user response (ie ok or cancel buttons), return control to itself and then repeat this with another 2 forms...

    I've been using

    frmLocate.show vbModal

    to pass control to the other form but for some reason if I use

    frmLocate.Hide

    it doesn't hide the form properly as it pops up when I call another form. I can't set vbModeless as the form is already showing. How do I revert control and then pass it to another form again?

    TIA

    BioS

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    Try the unload statement rather than Hide method....

    Code:
    Form.Hide
    Unload Form
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    36
    I've tried that... but the form still just sits there with focus. It seems VB is returning to the line that contains the last operation on the form. eg

    frmLocate.Hide
    frmLocate.Show vbModal

    If I add a .Hide statement before hand it returns to that. Where as without it, it returns to .Show vbModal. Shouldn't it just run onto the next line?

    I don't understand it... any other ideas?

    BioS
    Last edited by bios2002; Feb 19th, 2001 at 06:47 PM.

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