Me.Close does not work

前端 未结 3 896
野的像风
野的像风 2021-01-19 01:57

I\'m working with VB.net. I’m having problems while I connect my application to my database today so I wanted to add an error handling to close the form.

The problem

3条回答
  •  半阙折子戏
    2021-01-19 02:19

    Technically the form is closed but not disposed, which means you can still reach the object but all controls in it are no longer reachable.

    So you will have to call dispose from somewhere to get rid of it completely.

提交回复
热议问题