CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    29

    How do you prevent a user from changing forms

    I need to know how to lock a user on to a window form.

    Example: User is on form A. He clicks a button and it opens form B. If he click on form A, form b would blink and windows would make a sound, and form b would still be in focus.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How do you prevent a user from changing forms

    Just open form b with ShowDialog( ). This opens it as a modal form with the behavior you've described.

  3. #3
    Join Date
    Nov 2009
    Posts
    29

    Re: How do you prevent a user from changing forms

    Quote Originally Posted by Arjay View Post
    Just open form b with ShowDialog( ). This opens it as a modal form with the behavior you've described.
    Thanks a ton. It works perfect.

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