0

does any one experience this while using mdi

the code is something like this

using a as new form
    a.mdiparent = this
    a.showdialog()
end using

then when i tried to show the new form it will close automatically.

why is that happening?

thank you

Edited by Reverend Jim: typo

2
Contributors
1
Reply
9
Views
5 Years
Discussion Span
Last Post by ddanbe
0

Because a Using block automatically disposes of any resources used in it. So if you stil want to use your form, don't put it in a using block. See MSDN for more details.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.