none
Modal RRS feed

  • Question

  • How do I setup a modal for my child form.

    I currently have Play as my parent form and Bank as my child form. I want to have it when I click on a button in the parent form, a modal will pop up. I will not be able to close the modal or alt-tab into the other form without closing the modal/child form.



    • Edited by Peunda Saturday, April 2, 2016 2:32 PM
    Saturday, April 2, 2016 2:21 PM

Answers

  • How do I setup a modal for my child form.

    I currently have Play as my parent form and Bank as my child form. I want to have it when I click on a button in the parent form, a modal will pop up. I will not be able to close the modal or alt-tab into the other form without closing the modal/child form.



    It sounds like your form is set up as an MDI and you want to use one of the child forms to be shown modally?

    If so, I don't think you can do that. Instead, create a new form, instantiate it, and then use .ShowDialog to show it modally:

    Using f2 As New Form2
        f2.ShowDialog()
    End Using

    Something like that.


    Knowledge rests not upon truth alone, but upon error also. Carl Jung

    Saturday, April 2, 2016 3:21 PM