Making multiple forms appear as one in VB.NET

后端 未结 4 1963
囚心锁ツ
囚心锁ツ 2021-01-23 16:11

I am writing a Windows Forms application in VB.NET. I have three forms: the main form, which shows a list of accounts, the account form which allows the user to view/edit the in

4条回答
  •  难免孤独
    2021-01-23 17:00

    try using ShowDialog()

    Dim newForm as New AcctForm
    newForm.Location = Me.Location
    newForm.ShowDialog()
    Me.Close() <-- removed this
    

提交回复
热议问题