sometimes (not everytimes), when I call the Me.Hide() in a form开发者_如何转开发, which I called with .ShowDialog(), the main form, which called this dialog minimized.
Very unclear. But, you cannot hide a dialog. ShowDialog() will disable all other windows in your app. When you hide the dialog, there is no window left that can get the focus. The user now won't be able to get back to your app. Winforms protects against this by automatically closing the dialog when you hide it.
You can minimize it.
The answer is to use Me.Close() instead of Me.Hide()
Sorry..
精彩评论