Results 1 to 3 of 3

Thread: How to show form on top

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2003
    Posts
    93

    How to show form on top

    HI,

    I have a form1, user enters info and clicks save, on the click event for this button.
    I have another form, form2, that displays as my messagebox. form2 is modal.
    When user clicks the OK button on the modal form I then want another form to show, form3, which has all of my grid data.
    This all works fine except when the user clicks the OK button on form2, form2 closes and form1 receives the focus & form3 displays behind form1.
    How do I make form3 display on top of form1?

    After showing form3 I tried form3.BringToFront but that didn't work. Anyone have any suggestions?

    Thanks,
    Corinne

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    In the OK button , show form3 using ShowDialog property of the form . I dunno if this will work but as I imagine it should work .

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2003
    Posts
    93
    Pirate,

    That worked perfectly. Thanks so much.

    Corinne

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