CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2001
    Posts
    23

    Making form code stop for password

    Can anyone help with this problem please :

    I have an order entry form on screen and if the user presses a certain button I want to be able to ask for a password before allowing them to perform the action. My problem is that when I .show the password entry form, code execution in the original form carries on. I want to be able to halt code execution in the calling form until the user has either ok'd or cancel'd in the password form !


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Making form code stop for password


    formx.SHow VBMODAL



    will do the trick. VBMODAL will suspend execution in the calling form until the called from is closed. THe only trick is to get the users response back to the calling form. Place it in a global variable somewhere for the calling form to interrogate.

    John G

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

Featured