vb.net auto instantiation (forms)

前端 未结 2 2015
挽巷
挽巷 2021-01-24 18:44

In VB.Net you can show a form without crete an object reference before... vb.net do it to you, but, that \"feature\" is generating many problems, eg:

Public Clas         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-24 19:34

    No there is no way to disable that. It is called the default instance. If you don't want to use it - don't use it. I recommend creating a new instance.

    Dim f3 As New Form3
    f3.Show()
    

提交回复
热议问题