表單新增一個表單,但隨著一起消失的屬性

今天要寫一個模仿鼎新的登入查詢表單
但要隨主表單縮小或不見

MSDN 有不錯的參考  ^^  附屬表單
Private
Sub ShowMyOwnedForm()
   ' Create an instance of the form to be owned.
   Dim ownedForm As New Form()
   ' Set the text of the form to identify it is an owned form.
   ownedForm.Text = "Owned Form"
   ' Add ownedForm to array of owned forms.
   Me.AddOwnedForm(ownedForm)

   ' Show the owned form.
   ownedForm.Show()
End Sub

沒有留言:

張貼留言