0
這是我的代碼來打開addUserform當用戶提交表單時,我怎樣才能自動關閉它?
Dim adduser As New frmadduser
adduser.MdiParent = Me
adduser.Visible = True
when user open ChangePassword form
Dim changepassword As New frmchangepassword
changepassword.MdiParent = Me
changepassword.Visible = True
我想問一下,怎麼後自動打開用戶的形式changepassword關閉當前的形式。 Iam使用me.close,這是代碼不工作。Thankyou
你的第一個表單(推測是'adduser')是如何打開的?你在哪裏運行這段代碼? –
[如何打開一個新的窗體,但關閉在VB中的舊的]可能重複(http://stackoverflow.com/questions/18491429/how-to-open-a-new-form-but-closing-the- old-one-in-vb) –
第一次運行程序時,程序顯示MDI父窗體顯示所有子窗體時登錄窗體自動打開。我卡住了,當用戶打開另一個表單時,最近的表單自動關閉。 –