Results 1 to 4 of 4

Thread: Prevent Clicking Other form

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2010

    Unhappy Prevent Clicking Other form

    hi all
    need some help about form
    i have two form 1 is maximize and the other 1 is small type kinda login system..
    and i dont want the user to click the main form, it will access the main form if he types the correct info on login form....

    thank you...

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Searching for mendhak

    Re: Prevent Clicking Other form

    If you don't want anyone using the big form until they login, then why are you showing it at all?

    When they execute your program, display the login form and nothing else.

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Southeastern MI

    Re: Prevent Clicking Other form

    I agree with Hack, just don't show the main form until after they have already logged in.

    For future forms, where your main window is up and you spawn a new window that needs to block input from the main form, you would use the ShowDialog method.

  4. #4
    King of sapila
    Join Date
    Oct 2006

    Re: Prevent Clicking Other form

    If it's something like a login system then you can use "Using" on your login to show the main form and me.hide for the login form(me.hide first), the next line on the using would be something like me.close or Application.Exit so when you close the main form you won't go back on the login form but you will exit the application.
    For a simple project i guess it's sufficient.
    Slow as hell.

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