Results 1 to 5 of 5

Thread: topmost form question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2003
    Location
    Birmingham, AL
    Posts
    188

    topmost form question

    I have another form in my program and I want it to stay the topmost form until it is closed simple right just set topmost = true;
    well my problem is that users can still click outside that window and access the menus an things on the other forms. How do I lock it so that the user cannot access any other forms in my project until this one is closed ( besides hiding them of coarse )

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    enabled = false
    or something like that.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2003
    Location
    Birmingham, AL
    Posts
    188
    The only problem I have with just disabling the form is that it turns all my forms colors. Is there a way to keep it from changing the color off all the controls on the form?

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Try this on your second form , it will override the first one and prevents the user from accessing or using other forms .
    Code:
    SecondForm.ShowDialog();

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2003
    Location
    Birmingham, AL
    Posts
    188
    thanks pirate

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